most valuable keyword definition of Angular -- iii

** 1. Data binding is the automatic synchronization of data between model and view component.

2. scopes are object that refer to the model. They act as glue between controller and view.

3. controller are javascript functions that are bound to a particular scope.

4. AngularJS comes with several builtin services. for example - $https: service is used to make XMLHttpRequest (Ajax Calls ).

5. Filters select a subset of items from an array and return a new array. Filters are used to show filtered items from a list of items based on defined criteria.

6. Directives are markers on DOM elements ( such as element attributes, css, and more ).

These can be used to create custom HTML tags that serve as new custom widgets.

Angular JS has builtin directives (ng-bind, ng-model, etc ) to perform most of the task that developers have to do.

**7. Template are the rendered view with information from the controller and model. These can be a single file ( like -- index.html   ) or multiple views in one page using "partials."

**8. Routing is concept of switching views. Angular JS based controller decides which view to render based on the business logic. 

9. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.


10. Advantages of Angular JS

***i.  Angular JS provides capability to create single page application in a very clean and maintainable way.

ii. Angular JS provides data binding capability to HTML thus giving user a reach and responsive experience. 

****iii. Angular JS code is unit testable.

iv. Angular JS use dependency Injection and make use of seperation of concerns.

****v. Angular JS provides reusable components.

vi. With Angular JS, developer writes less code and gets more functionality.

vii. In Angular JS views are pure HTML pages, and controllers written in Javascript do the business processing.

viii. Angular JS applications can run on all major browsers and smart phones including Android and IOS based phones / tablets.

   ****************************DisAdvantages of Angular JS*********************


i. Not secure --- Being javascript only framework, application written in angular. javascript are not safe

NOTE --- Server Side Authentication and Authorization is must need to keep an application secure.


ii. Not degradable ---- If your application users disables Javascript then user will just see the basic page and nothing more.


iii. Core directives of Angular JS 

**** ng-app ==> This directive defines and links an Angular JS application to HTML.

ng-model ===> This directive binds the values of Angular JS application data to HTML input controls. 

*** ng-bind ==> This directive binds the Angular JS application data to HTML tags.


NOTE ===>

When the page is loaded into the browser, following things happen........

i. HTML document is loaded into the browser and evaluated by the browser.

 Angular JS javascript file is loaded and the angular global object is created then , javascript which registers controller functions is executed.

ii. Angular JS scans through the HTML to look for AngularJS apps and views. once view is located, it connects that view to the corresponding controller function.

iii. Angular JS executes the controller functions. then renders the views with data from the model populated by the controller. The page gets ready.


  ******************* Good Morning Learners ***************************************



Comments

Popular posts from this blog

Become a Expert + Secret of Success -- ii

Change Detection

without writing media queries How to make responsive component