Angular 2
Angular 2
Angular 2
Matt
Raible
http://flickr.com/photos/leecullivan/122271605/
http://flickr.com/photos/crowleymr/2530170585/
http://www.flickr.com/photos/mraible/2644737051/
http://www.travelblog.org/Photos/1597321.html
Stormpath User Management
What about YOU?
How long have you been doing web development?
<body>
<my-app>Loading AppComponent content here ...</my-app>
</body>
</html>
app/main.ts
platformBrowserDynamic().bootstrapModule(AppModule);
app/app.module.ts
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
app/app.component.ts
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}}</h1>`,
})
export class AppComponent { name = 'Angular'; }
Easiest ways to get started
Angular QuickStart
https://github.com/angular/quickstart
Angular Seed
https://github.com/mgechev/angular-seed
Angular CLI
https://github.com/angular/angular-cli
Let’s take a look at a few things…
Angular CLI
TypeScript
Unit Tests
Integration Tests
Continuous Integration
Deployment
Angular CLI
npm install -g angular-cli ng g component
cd ng2-demo ng build
ng serve ng --help
ng test
ng e2e
ES6, ES7 and TypeScript
ES5: es5.github.io
ES6: git.io/es6features
TS: www.typescriptlang.org
TypeScript
$ npm install -g typescript
$ tsc greeter.ts
https://www.typescriptlang.org/docs/tutorial.html
bus.ts
Types of Tests
Unit Tests
End-to-End Tests
Unit Test Example
bus.spec.ts
Live Coding!
What you learned
How to…
https://angular.io/styleguide
https://github.com/johnpapa/angular-styleguide
ng-book 2
A comprehensive guide to developing with
Angular 2
4 of 10 chapters available
yo angular-library
https://github.com/mraible/ng-demo
Step-by-step Tutorial
http://gist.asciidoctor.org/?github-mraible/ng-demo//README.adoc
Questions?
Keep in touch!
raibledesigns.com
@mraible
linkedin.com/in/mraible
Presentations
slideshare.net/mraible
Code
github.com/mraible