I am developing lot of examples for Angular 2, find those examples on Github. Here are some important examples: ContactsManager GithubDashboard NotesApp VehiclesApp CustomValidator I will be updating these examples as Angular 2 progresses.
In this article we are not discussing how to develop forms in Angular 2, we are going to discuss how to write a custom validator for Angular 2 forms. Forms API in Angular 2 has some built-in validators already, here is an model driven form example with built-in required validator.
Dealing with dates is always a nightmare. In this example I will show how to convert a JSON date to JavaScript date returned from server side to an AngularJS app. In AngularJS we use filters to transform data, in this case we can use angular date filter. But it doesn’t work directly with JSON formatted…
The $http service is a core angular service that helps in consuming web services (either REST or SOAP) via the browser’s XMLHttpRequest object or via JSONP . $http service is similar to jQuery $.ajax() method. Here is the syntax of $http service : The $http service is a function which takes a single argument that…
I was working with AngularJS from couple months. I came across some new features in AngularJS 1.2. I am going blog about this new features. AngularJS 1.2 introduces new “controller as” syntax. This syntax helps us to abstracts the use of $scope in controllers, simplifying the syntax of controllers, html markup. Let’s have a look…