a different thought angularjs

38
A Different Thought AngularJS

Upload: amit-thakkar

Post on 06-Aug-2015

971 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: A different thought AngularJS

A Different ThoughtAngularJS

Page 2: A different thought AngularJS

Agenda

Page 3: A different thought AngularJS

Agenda

★ Why we need JS Framework?

Page 4: A different thought AngularJS

Agenda

★ Why we need JS Framework?★Why AngularJS?

Page 5: A different thought AngularJS

Agenda

★ Why we need JS Framework?★Why AngularJS?★ Hello World Program

Page 6: A different thought AngularJS

About Me

Amit ThakkarTech Blogger @ CodeChutney.inJavaScript LoverWorking on MEAN Stack

Twitter: @amit_thakkar01LinkedIn: linkedin.com/in/amitthakkar01Facebook: facebook.com/amit.thakkar01

Page 7: A different thought AngularJS

Why we need JS Framework?

Page 8: A different thought AngularJS

Why we need JS Framework?

★ validating form?

Page 9: A different thought AngularJS

Why we need JS Framework?

★ validating form?★ dom manipulation?

Page 10: A different thought AngularJS

Why we need JS Framework?

★ validating form?★ dom manipulation?★ templating?

Page 11: A different thought AngularJS

Why we need JS Framework?

★ validating form?★ dom manipulation?★ templating?★ repeating/conditional view

Page 12: A different thought AngularJS

Why we need JS Framework?

★ validating form?★ dom manipulation?★ templating?★ repeating/conditional view★ play with ajax?

Page 13: A different thought AngularJS

Why we need JS Framework?

★ validating form?★ dom manipulation?★ templating?★ repeating/conditional view★ play with ajax?

We are MVC Guys

&

We have jQuery

Page 14: A different thought AngularJS

Why we need JS Framework?

Page 15: A different thought AngularJS

Why we need JS Framework?

What is wrong with MVC

Page 16: A different thought AngularJS

Why we need JS Framework?

1. Server is processing JSP with Data for each request.

Page 17: A different thought AngularJS

Why we need JS Framework?

1. Server is processing JSP with Data for each request.

2. Generate the HTML.

Page 18: A different thought AngularJS

Why we need JS Framework?

1. Server is processing JSP with Data for each request.

2. Generate the HTML.3. Render/Serve HTML.

Page 19: A different thought AngularJS

Why we need JS Framework?

1. Server is processing JSP with Data for each request.

2. Generate the HTML.3. Render/Serve HTML.4. Size of render HTML is approx. 100

multiple of Data.

Page 20: A different thought AngularJS

Why we need JS Framework?

1. Server is processing JSP with Data for each request.

2. Generate the HTML.3. Render/Serve HTML.4. Size of render HTML is approx. 100

multiple of Data.5. Its client not dependent.

Page 21: A different thought AngularJS

Why we need JS Framework?

We have removed the View from MVC

Page 22: A different thought AngularJS

Why we need JS Framework?

We have removed the View from MVCWe call t

his now Web-Services

Page 23: A different thought AngularJS

Why AngularJS?

Page 24: A different thought AngularJS

Why AngularJS?

1. Developed by Google.

Page 25: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.

Page 26: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.3. Implement many Design Patterns e.g.

Page 27: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.3. Implement many Design Patterns e.g.

a. MVW

Page 28: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.3. Implement many Design Patterns e.g.

a. MVWb. Singleton

Page 29: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.3. Implement many Design Patterns e.g.

a. MVWb. Singletonc. Dependency Injection

Page 30: A different thought AngularJS

Why AngularJS?

1. Developed by Google.2. Actively development happening.3. Implement many Design Patterns e.g.

a. MVWb. Singletonc. Dependency Injection

4. 2-way data-binding.

Page 31: A different thought AngularJS

Hello World Program<!DOCTYPE html><html ng-app><head lang="en"> <meta charset="UTF-8"> <title></title></head><body>Name: <input type="text" ng-model="name"> <br/>Hello {{name}}<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" type="application/javascript"></script></body></html>

Page 32: A different thought AngularJS
Page 33: A different thought AngularJS

Hello World Program<!DOCTYPE html><html ng-app><head lang="en"> <meta charset="UTF-8"> <title>Hello World</title></head><body>Name: <input type="text" ng-model="name"> <br/>Hello {{name}}<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" type="application/javascript"></script></body></html>

Page 34: A different thought AngularJS

Hello World Program<!DOCTYPE html><html ng-app><head lang="en"> <meta charset="UTF-8"> <title>Hello World</title></head><body>Name: <input type="text" ng-model="name"> <br/>Hello {{name}}<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" type="application/javascript"></script></body></html>

Page 35: A different thought AngularJS

Hello World Program<!DOCTYPE html><html ng-app><head lang="en"> <meta charset="UTF-8"> <title>Hello World</title></head><body>Name: <input type="text" ng-model="name"> <br/>Hello {{name}}<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" type="application/javascript"></script></body></html>

Page 36: A different thought AngularJS

Hello World Program<!DOCTYPE html><html ng-app><head lang="en"> <meta charset="UTF-8"> <title>Hello World</title></head><body>Name: <input type="text" ng-model="name"> <br/>Hello {{name}}<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" type="application/javascript"></script></body></html>

Page 37: A different thought AngularJS

Questions??

Page 38: A different thought AngularJS