20
Angular 1.x in action now Andrey Michaliuk @Readdle

Angular 1.x in action now

Embed Size (px)

Citation preview

Page 1: Angular 1.x in action now

Angular 1.x in action now

Andrey Michaliuk @Readdle

Page 2: Angular 1.x in action now

Components in 1.5.Xdeclarationslifecycle hooksbindingsrequiretransclude

Page 3: Angular 1.x in action now

Declaration component

Page 4: Angular 1.x in action now

Bindings structure

Page 5: Angular 1.x in action now

Bindings rules

trigger updates for primitive types

array, objects and .. => use immutable.js

Page 6: Angular 1.x in action now

$watchers?

and some..

scope.$watch("$ctrl.progress", this.setProgress)

Page 7: Angular 1.x in action now
Page 8: Angular 1.x in action now

Transclude and slots

Page 9: Angular 1.x in action now

Custom elements

<screen-component></screen-component>

Page 10: Angular 1.x in action now

Custom elements

Page 11: Angular 1.x in action now

Routing

ngRoute -> ui-router -> angular@router/angular1

Page 12: Angular 1.x in action now

Routing

Page 13: Angular 1.x in action now

Routing

ngRoute -> ui-router -> angular@router/angular1 =>

ui-router

Page 14: Angular 1.x in action now

ui-router

Page 15: Angular 1.x in action now

Typescript or…

transpile from es6 to es5 - the overhead cost of compiled es2015optional types documentation for you code

Page 16: Angular 1.x in action now

Typescript or…

Page 17: Angular 1.x in action now

Typescript declaration files

TSD => Typings 1.X => Typings 2.0 => @types from npm

Page 18: Angular 1.x in action now

Webpack

slow building over 500 modulesoverhead cost of compiled codeplugins are strangeconfiguration files for project (dev/prod/test env) are really difficult to understand

Page 19: Angular 1.x in action now

Looking for

Rollup.js - Material 2 configuration Webpack 2 - noooooClosure compiler

Page 20: Angular 1.x in action now

Maybe the end

Andrey Michaliuk Twitter: @andreyctkn Github: @andreyutka