Slide 1

Slide 1 text

ANGULARJS v.1.x BY IRFAN MAULANA

Slide 2

Slide 2 text

ABOUT ME • Name : Irfan Maulana • Job : Software Development Engineer • Role : Front End Developer

Slide 3

Slide 3 text

WEB - BEFORE • Javascript DOM Manipulation Browser compatibility problem

Slide 4

Slide 4 text

WEB - BEFORE • jQuery + DOM Manipulation DOM Manipulation Browser compatibility problem

Slide 5

Slide 5 text

WEB NOWADAYS

Slide 6

Slide 6 text

ANGULARJS Developed by Google Javascript Framework for Modern Web Application

Slide 7

Slide 7 text

MVC ARCHITECTURE

Slide 8

Slide 8 text

> MODEL Entire javascript’s object that reflect data structure and wrapped in $scope.

Slide 9

Slide 9 text

> MODEL > VIEW HTML template that references the data to model

Slide 10

Slide 10 text

> MODEL > VIEW > CONTROLLER All the logic that control the model than react all changes triggered by view

Slide 11

Slide 11 text

EXAMPLE 1 : Data Binding File created : 1. Application.js 2. AppController.js 3. index.html

Slide 12

Slide 12 text

EXAMPLE 1 : Data Binding 1. Application.js

Slide 13

Slide 13 text

EXAMPLE 1 : Data Binding 2. AppController.js

Slide 14

Slide 14 text

EXAMPLE 1 : Data Binding 3. index.html

Slide 15

Slide 15 text

EXAMPLE 1 : Data Binding Source code : https://github.com/mazipan/angularjs-basic- tutorial/tree/master/example1-data-binding You Learn : + How to create AngularJS webapp + Data binding to view

Slide 16

Slide 16 text

EXAMPLE 2 : Request Data Source code : https://github.com/mazipan/angularjs-basic- tutorial/tree/master/example2-request-data You Learn : + How to create GET request in AngularJS + Iterate data in view

Slide 17

Slide 17 text

EXAMPLE 3 : Services Source code : https://github.com/mazipan/angularjs-basic- tutorial/tree/master/example3-services You Learn : + How to create service in AngularJS + Inject service to controller + Instance many controller in One WebApp + Sharing data between controller

Slide 18

Slide 18 text

EXAMPLE 4 : Routing Source code : https://github.com/mazipan/angularjs-basic- tutorial/tree/master/example4-routing You Learn : + How to create routing in AngularJS

Slide 19

Slide 19 text

Exercise Create AngularJS Web Application that have CRUD interaction base on below API : https://jsonplaceholder.typicode.com/

Slide 20

Slide 20 text

THANK YOU