AngularJS is a standalone JavaScript Framework which is great for building webpages, Apps and hosted on Cloud. We can serve from Dropbox Cloud or Cloud Files. For development or experiment purpose, one can read the article on Photo Gallery Hosting – Free or Nearly Free Practical Options. AngularJS is a standalone JavaScript Framework only, that means it will require some HTML, CSS thing like free Twitter Bootstrap or closer like that and it has nothing to do with Node.js – it will run anywhere on Apache2, Nginx or any normal HTTP server which can serve HTML pages.
AngularJS : Basics on the Standalone JavaScript Framework
AngularJS is simply known as Angular, is an open source Javascript Framework maintained by Google , which is helpful for the creation of browser-based single-page applications with a MVC support model to the software development and testing components to simplify the corresponding applications. In Angular ViewModel is defined with the logic in a controller. Controllers are then combined into a single module. The modules are integrated using a Dependency Injection container. The view is connected to the ViewModel. Thereby a bi-directional data link between the view and the logic is possible. Angular allows your own HTML elements and attributes in the form of directives to define. The values of those JavaScript variables can be manually set, or retrieved from static or dynamic JSON resources. To select items from AngularJS, jQuery Light (jqLite) is used, a light version of jQuery. If jQuery is also included in the HTML DOM, jQuery Light will be used.
AngularJS : Syntax and Services
Double curly syntax interpolation
---
AngularJS also offers a double-curly syntax interpolation. This is JavaScript expression in double curly braces. Here, however, no jump of instructions is supported. Instead, the pipe operator | like Unix filters is supported. Alternatively, ng-bind can be used.
Services
Services include business logic and connect to external resources – like RESTful web services – a Services thus correspond to the model in the MVC. Services are instantiated as Singleton.
AJAX requests are carried out in AngularJS as $http object and $resource object. Internal access to the XMLHttpRequest object differ in the degree of abstraction. While $http arbitrary HTTP requests can make is $resource specializing in REST services. In addition, there are specialized services from some third parties.
Communication
The controller can communicate with other controllers or services that may be from $scope or from $rootScope and $broadcast methods are available. $emit send messages to all the parent scopes, while $broadcast serves messages to child scopes.
Routes in single-page applications
In order to define routes in single-page application (SPA), which is the purpose of ngRoute module. This routes can be defined. The ngRoute module can dynamically reload an element with the ng-view directive.
AngularJS : Sample Application
Tagged With paperuri:(3e027506ffd28e5e15a69c147c5d9d16)