14
Presented by: Brajesh

AngularJS Introduction

Embed Size (px)

Citation preview

Page 1: AngularJS Introduction

Presented by:Brajesh

Page 2: AngularJS Introduction

AgendaIntroduction

What should we know before using Angular JS

How Web Pages Get to Your Browser

What Is Angular JS?

How different from Others

Why need angular JS?

How to use Angular JS?

Angular Demo

Q & A

Page 3: AngularJS Introduction

AngularJS is created by Google to build single page applications which could be more architectured and maintainable.

AngularJS is completely clientside and entirely JavaScript, so wherever Javascript runs AngularJS also runs.

It is even less than 29kb making it highly minified and compressed. Angular is the next generation framework

Page 4: AngularJS Introduction

• Moderate knowledge of HTML, CSS, JavaScript, including the following concepts:– Design Pattern– OOP, including encapsulation and inheritance– Object creation, prototypes

• Basic Model-View-Controller concepts• The Document Object Model• JavaScript functions, events, error handling

Page 5: AngularJS Introduction

When you open your web browser on your computer and type in http://google.com, your web browser “asks” the internet (more precisely, it “asks” a DNS server) where google.com’s address is. If the DNS server knows the IP address you’re looking for, it responds with the address. If not,it passes the request along to other DNS servers until the IP address is found and served to your computer. You can see the DNS server response by typing this code into a terminal

Page 6: AngularJS Introduction

• AngularJS is a client-side technology, written entirely in JavaScript. It works with the long-established technologies of the web (HTML, CSS, and JavaScript) to make the development of web apps easier and faster than ever before.

• structural framework for design SPA.• AngularJS allows you to extend HTML by adding your own custom tags and

attributes

Page 7: AngularJS Introduction

In other JavaScript frameworks, we are forced to extend from custom JavaScript objects and manipulate the DOM from the outside in. For instance, using jQuery, to add a button in the DOM,we’ll have to know where we’re putting the element and insert it in the appropriate place:

var btn = $("<button>Hi</button>");btn.on('click', function(evt) { console.log("Clicked button") });$("#checkoutHolder").append(btn);

Although this process is not complex, it requires the developer to have knowledge of the entire DOM and force our complex logic inside JavaScript code to manipulate a foreign DOM.AngularJS, on the other hand, augments HTML to give it native Model-View-Controller (MVC) capabilities. This choice, as it turns out, makes building impressive and expressive client-side applications quick and enjoyable.

It enables you, the developer, to encapsulate a portion of your entire page as one application, rather than forcing the entire page to be an AngularJS application.

Page 8: AngularJS Introduction

• MVC Support• Two way data binding • AngularJS Supports Single Page Applications.• AngularJS Helps Developers Manage State.• AngularJS Gives Developers Controls.• AngularJS Enables Massively Parallel Development.• AngularJS Handles Dependencies• Routing Mechanism.

Page 9: AngularJS Introduction
Page 10: AngularJS Introduction

AngularJS road map

Page 11: AngularJS Introduction
Page 12: AngularJS Introduction

Angular directory Architecture

Page 13: AngularJS Introduction
Page 14: AngularJS Introduction

Thank you for listening!