angular2-learn

17
Angular 2 ~ Ahasan Habib

Transcript of angular2-learn

Page 1: angular2-learn

Angular 2

~ Ahasan Habib

Page 2: angular2-learn

Development Environment● Operating System

* Windows

* Linux

* Mac

● Integrated Development Environment (IDE)

VISUAL STUDIO CODE (VSCODE)

VISUAL STUDIO 2015

● Nodejs

● Webpack

Page 3: angular2-learn

Programming Language

● Typescript

● Javascript

Page 4: angular2-learn

Introduction

● One Framework (Mobile & Desktop)

● Successor of Angular-1x

● But huge difference from angular 1x ...

● Configurations

* Systemjs.config.js

* tsconfig.json

* package.json

● Application Shell

* index.html

Page 5: angular2-learn

Core Features

● Modules

● Components

● Templates

● MetaData

● Data Bindings

● Directives

● Services

● Dependency Injection

Page 6: angular2-learn

Module

Page 7: angular2-learn

Component

Page 8: angular2-learn

Template

Page 9: angular2-learn

Metadata

Page 10: angular2-learn

Data Binding1. One way (Source to View Or View to Source).

2. Two way (Source to View AND View to Source).

3. Value Binding

4. Property Binding

5. Event Binding

6. Model Binding

Page 11: angular2-learn

Directives1. Component Directives

2. Structural Directives

3. Attribute Directives

● NgFor● NgIf● NgModel● NgSwitch● NgSwitchCase● NgSwitchDefault

Page 12: angular2-learn

Service● No Specific Defination

● Components are basically service consumer.

● [LoggingService, DataService, Application Configuration]

Page 13: angular2-learn

Dependency Injection

Page 14: angular2-learn

Other Features● Animations

● Change Detections

● Events

● Forms

● Http

● Lifecycle Hook

● Pipes

● Router

● Testing

Page 15: angular2-learn
Page 16: angular2-learn
Page 17: angular2-learn

“Tell me and I forget, teach me and I may remember, involve me and I learn.” ― Benjamin Franklin

THANKS TO ALL