List of Listings

 

Chapter 2. Getting started with Angular

Listing 2.1. TypeScript index.html

Listing 2.2. TypeScript main.ts

Listing 2.3. ES5 index.html

Listing 2.4. ES5 main.js

Listing 2.5. ES6 index.html

Listing 2.6. ES6 main.js

Listing 2.7. index.html with SystemJS

Listing 2.8. package.json

Listing 2.9. Using package source code in package.json

Listing 2.10. index.html

Listing 2.11. systemjs.config.js

Listing 2.12. tsconfig.json

Listing 2.13. app.component.ts

Listing 2.14. app.module.ts

Listing 2.15. systemjs.config.js file

Listing 2.16. index.html

Listing 2.17. Updated app.module.ts

Listing 2.18. application.ts

Listing 2.19. application.html

Listing 2.20. product-item.ts

Listing 2.21. product-item.html

Listing 2.22. stars.ts

Listing 2.23. stars.html

Chapter 3. Navigation with the Angular router

Listing 3.1. HomeComponent

Listing 3.2. ProductDetailComponent

Listing 3.3. app.routing.ts

Listing 3.4. app.component.ts

Listing 3.5. main.ts

Listing 3.6. main-navigate.ts

Listing 3.7. ProductDetailComponentParam

Listing 3.8. main-param.ts