Top Banner
HOW DO WE WORK WITH ANGULAR.JS
17
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How do we work with Angular.js

HOW DO WE WORK

WITH ANGULAR.JS

Page 2: How do we work with Angular.js

Anastasiya RybikSoftware Engineer,

EPAM Systems

Page 3: How do we work with Angular.js
Page 4: How do we work with Angular.js

WHAT DID WE HAVE?

1 HTML file

~ 1300 lines of code

1 CSS file

~ 1500 lines of code

10 JavaScript files

~ 1000 - 2000 lines of code each

Page 5: How do we work with Angular.js
Page 6: How do we work with Angular.js

TECHNOLOGY STACK

Page 7: How do we work with Angular.js

WHY ANGULAR?

• Two-way data binding

• Modularity

• Templates

• Dependency Injection

• Simple Testing

• Supporting by Google (Community)

Page 8: How do we work with Angular.js
Page 9: How do we work with Angular.js
Page 10: How do we work with Angular.js
Page 11: How do we work with Angular.js

OR

ONE COMPONENT – TWO VIEWS

Page 12: How do we work with Angular.js

Change Dealership Directive

Dealership Service

Change Dealership Directive

attr

OR

Page 13: How do we work with Angular.js

COMPONENT STRUCTURE

Page 14: How do we work with Angular.js

Bundle.json

{

"id": "edm.creative.heroCarousel",

"name": "Hero Carousel",

"dependencies": [

"core.interlock.fulcrumConfig",

"ngResource",

...

],

...

}

Page 15: How do we work with Angular.js

COMPILE

JS CSS HTML

JS CSS HTML

JS CSS HTML

JS CSS

Page 16: How do we work with Angular.js

SO WHAT?

• Simple page building;

• Components reusability;

• Easy to support

• Code confidence;

Page 17: How do we work with Angular.js

THANK YOU!

HAVE QUESTIONS?