So recently I was struggling a bit trying to implement an undo feature in our web application. But found that invalid values are not stored in the modelValue.
Running multiple versions of NodeJS can make life a bit difficult. I struggled to maintain different versions of NodeJS on my machine and after a bit of Googling, I found the solution to my problems.
Tutorials on Angular rarely focus on the importance of Services within your application. Services will help you structure you app better and will promote code re-usability. I really struggled to structure my apps, until I started making use of services.
As discussed in a previous post, there are many ways to instantiate a service, so we won’t go into that in this article. The focus of this article is to help you rethink the way you are working with your controllers inside of AngularJS.
Controllers are not to be concerned with the structure of the data. Controllers are to be used only to bring together functionality across multiple classes to perform a certain function.
Handling asynchronous calls can deliver unexpected results. This type of unexpected behaviour can be hard to track down but can be easily managed by means of promises. Promises are to be released as part of ES6 (ECMAScript 6), but for now we are relying on external libraries to assist us with this task.
Fortunately does Angular provide a service for working with promises. $q.
Working with datatypes can be a tricky thing as it is. But working with datatypes without having datatypes can be even more challenging.
It is however important to understand the differences, since it might lead to unexpected logic errors in your code.
If you are anything like me, you would take the meaning of a name to heart. Although the name SOFEA is an acronym for Service Oriented Front End Applications/Architecture, would I like to think of its meaning to be the same as SOPHIA which means: “Wisdom”.
Hooking your web app up with AngularJS is really an easy thing to do, but one has to pay close attention since Angular will introduce a lot of new concepts as you go.
NodeJS introduces a new devil to deal with. A single threaded application. This brings forth the complication of a shared state between variables.