Software engineering facts, information, and skills categorized as Angular JS

Introduction to Angular JS

Varghese Chacko 1 year, 2 months ago

Angular JS logoAngular JS is a framework in JavaScript. It is distributed as a JavaScript file and could be included in any HTML page with script tag. <script src=""></script> The angular JS extends the HTMLwith directives. The key directives are ng-app which defines the AngularJS application, the ng-model directive which bids value of HTML controls like input widgets to the app and ng-bind binds application data to the HTML.

AngularJS Services - The singleton data and code sharing method

Varghese Chacko 1 year, 2 months ago

Angular JS logoAngular services are used to organize code across the application and are wired together using Dependancy Injection. Angular services are lazily instantiated, i.e, they are instantiated only when an application component depends on it.They are singletons, ie there will be only one instance exists for the app and the components depending on the service gets the reference to the service.