Submitted by: Submitted by didolino
Views: 10
Words: 596
Pages: 3
Category: Science and Technology
Date Submitted: 05/14/2016 05:08 AM
CITA 204 11th May 2016
AngularJS
Student: Halilčević Ajdin,Ajdin Spahić,Mirha Kahrimanović
Proffesor:Amar Latifović
Introduction:
AngularJS is an open-source web application framework mainly maintained by Google and a collection of hobbyists, professional individuals and corporations.
Angular was first developed in 2009 by Misko Hevery. It was firstly supposed to be a “pay by the megabyte” service but later was turned into a open source library as it hadn’t have a substantial amount of subscribers.
It’s main purpose is to make the development and testing of single page applications more accessible and less time consuming.
It works as followed: The AJS framework first reads the HTML page that contains embedded tag attributes.
It works the attribute interprets them as directives to connect I/O parts represented by the standard JS variables.
Scopes:
$scope
In AngularJS a scope is a fundamental element of the development process and it is the same as in computer science.
In Angular, a scope is represents an object that itself can either be a in or out of scope in any given part of the program, and it follows the standard protocol of variables in JavaScript.
Bootstrap:
The AngularJS bootstrapper works in 3 steps after the DOM has been loaded:
I. Creation of a new Injector
II. Compilation of the directives that decorate the DOM
III. Linking of all directives to scope
BASED ON THE BOOTSTRAP SECTION ON WIKIPEDIA
ng-app
Declares the root element AngularJS application, under whom directives will be accustomed declare bindings and outline behavior.
ng-bind
Sets the text of a DOM element to the value of the expression. Any change to the variable ‘name’ is reflected inside the DOM.
ng-model
Similar to ng-bind, but establishes a two-way data binding between the view and the scope.
ng-model-options
Controls tuning on how model updates...