Angularjs PPT

7,570 views 24 slides Sep 28, 2018
Slide 1
Slide 1 of 24
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24

About This Presentation

My PPT on AngularJS at Infobeans


Slide Content

A session by Amit Baghel Superheroic JavaScript MVW Framework

History AngularJS was created, as a side project, in 2009 by two developers, Misko Hevery and Adam Abrons. The two originally envisioned their project, GetAngular, to be an end-to-end tool that allowed web designers to interact with both the frontend and the backend. Hevery eventually began working on a project at Google called Google Feedback. Hevery and 2 other developers wrote 17,000 lines of code over the period of 6 months for Google Feedback. However, as the code size increased, Hevery began to grow frustrated with how difficult it was to test and modify the code the team had written. So Hevery made the bet with his manager that he could rewrite the entire application using his side GetAngular project in two weeks. Hevery lost the bet. Instead of 2 weeks it took him 3 weeks to rewrite the entire application, but he was able to cut the application from 17,000 lines to 1,500 lines.

17000 lines of code to 1500 how? Take an example In JQuery HTML <p id="test"></p> <p id="test1"></p> <p id="test2"></p> <p id="test3"></p>

17000 lines of code to 1500 how? Script $(function(){ $('#test’).text('Hello World!'); $('#test1’).show(); $('#test2’).hide(); $('#test3’).addClass(‘active’); });

17000 lines of code to 1500 how? Same thing in Angularjs ? HTML <p>{{greeting}}</p> <p ng-show=’visible’ ></p> <p ng-hide=’visible’></p> <p ng-class=’{ ‘active’: visible }’></p>

17000 lines of code to 1500 how? Same thing in Angularjs ? Script $scope.greeting=’Hello Viatech’; $scope.visible=’true’;

•Structure, Quality and Organization •Lightweight ( < 36KB compressed and minified) •Free •Separation of concern •Modularity •Extensibility & Maintainability •Reusable Components Benefits of Angularjs

What Browsers Does AngularJS Support? Angular claims to support “Class A Browsers.” As of Angular 1.2, the Angular team considers the following browsers “Class A”: Chrome Firefox Safari iOS Android IE8+.

https://angularjs.org

What is SPA?

In Angularjs SPA application is created with the help of one of the most happening features of Angularjs i.e. Routing

Modules Directives Templates Scope Expressions DataBinding MVC (Model, View & Controller) Validations Filters Services Routing Dependency Injection Features

What is a module? A container for code for the different parts of your applications. Your module goes here ng-app=’yourModuleName’ Module

What is a controller? AngularJS applications are controlled by controllers. Controller does not directly communicate to views but with the help of scope as like model in ASP.Net MVC. ng-controller=’yourControllerName’ Controller Controller

A quick note $rootscope is the parent scope for all the scopes of several controller Behaves like models in MVC but models are two-way Scope

one way binding is done with the help of inbuilt directive i.e. Ng-bind for once and {{}} / interpolation / expression Binding

Two way binding is done with the help of an inbuilt directive i.e. ng-model Binding

As we say controls in ASP.net or Partial views in MVC Directive

What are expressions or code blocks in ASP.Net or MVC?

ASP.NET MVC Code blocks in Microsoft technologies

{{ variable }} Will get evaluated to its value . Expression in Angularjs

Good luck! Keep learning. Thank you everyone !!

In next session We will decide :)