angular js: a brief introduction

16
A Brief Introduction Fernando Mano

Upload: fernando-t-martins-mano

Post on 18-Jan-2017

163 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Angular JS:  A Brief Introduction

A Brief Introduction

Fernando Mano

Page 2: Angular JS:  A Brief Introduction

What is AngularJS?

Not (only) a library

"AngularJS is a structural framework for dynamic web apps" (AngularJS' official website)

Page 3: Angular JS:  A Brief Introduction

Philosophy"Angular is what HTML would have been, had it been designed for applications" (AngularJS' official website)

"Angular is built around the belief that declarative code is better than imperative when it comes to building UIs and wiring software components together," (AngularJS' official website)

Page 4: Angular JS:  A Brief Introduction

Key ConceptsDirectives Filters

Two-way data binding Expressions

Scopes Templating

Dependency Injection Services

Page 5: Angular JS:  A Brief Introduction

Key Concepts - Directives

Page 6: Angular JS:  A Brief Introduction

Key Concepts - Two-way Data Binding

Page 7: Angular JS:  A Brief Introduction

Key Concepts - Scopes

Page 8: Angular JS:  A Brief Introduction

Key Concepts - Dependency Injection

Page 9: Angular JS:  A Brief Introduction

Key Concepts - Filters

Page 10: Angular JS:  A Brief Introduction

Key Concepts - ExpressionsAngular expressions are JavaScript-like code snippets that are usually placed in bindings such as {{ expression }}.

For example, these are valid expressions in Angular:

1+2

a+b

user.name

items[index]

Page 11: Angular JS:  A Brief Introduction

Key Concepts - Templating

Page 12: Angular JS:  A Brief Introduction

Key Concepts - Services

Page 13: Angular JS:  A Brief Introduction

Why AngularJS?Uses and extends HTML

Declarative templating

Easily testable

Encourages the use of MVC/MVVM design pattern

Reusable

Single-page applications

Page 14: Angular JS:  A Brief Introduction

When NOT to use AngularJS?Intensive or tricky DOM manipulations → poor performance

- GUI editors and games

Page 16: Angular JS:  A Brief Introduction

Thanks!