Sunday, August 10, 2014

AngularJS–Part 9 - Values and constants

Sometimes we need some data that is globally available but at the same time we do not want to pollute the global (window) namespace with the definition for this data. Angular provides us the value and constant services which can do exactly this. Values and constants declared in this way can be injected into any controller or service like any other dependency (e.g. $scope, $http, etc.).

Read More

AngularJS–Part 8 - More choice when testing

While digging a bit deeper into the world of testing in and around Angular I was made aware of testem, another awesome framework agnostic test runner. This test runner is extremely simple to setup and we are up and running in no time.

Read More

AngularJS–Part 7 - Getting ready to test

Test driven development (TDD) is very important when developing a web application with a rich client since JavaScript is a dynamic language and thus there is no compiler making sure that our code behaves like expected. Tests are our only safety net. Writing tests in JavaScript and running them in a browser is not trivial. Lately the situation has improved quite a bit. Still, to get up and running for the first time is a non trivial task.

Read More

AngularJS–Part 6 - Templates

In Angular when we talk of a template we really mean the view with the HTML enriched by the various Angular directives and the markup used for data binding (the expressions in double curly braces {{ }}). We can of course go a step further and not only regard a whole HTML document as a template but also any HTML fragment, often called partials.

Read More

AngularJS–Part 5 - pushing data to the server

This post discuss some specifics of the architecture of our enterprise application and what that means for the design of our Web client.

Read More

AngularJS–Part 4 - Accessing server side resources

AngularJS offers different built-in ways of communicating with a server. The service we want to discuss here is the so called $http service. It provides us an easy and elegant way to communicate via HTTP protocol with a web server. We get the $http service in a controller via dependency injection.

Read More

AngularJS–Part 3 - Inheritance

This post discuss the aspects of controller inheritance.

Read More