├── .gitignore ├── 10_bookDetails ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.service.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ ├── shared │ │ ├── favorite │ │ │ ├── favorite.component.html │ │ │ └── favorite.component.ts │ │ └── pipes │ │ │ └── truncate.pipe.ts │ └── welcome │ │ ├── welcome.component.html │ │ └── welcome.component.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 1_starter ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.ts │ ├── app.module.ts │ └── main.ts ├── index.html ├── package-lock.json ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 2_eventBind ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ └── main.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 3_customPipe ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 4_input ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 5_output ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 6_favorite_component ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 7_service_example ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.service.ts │ │ ├── book.ts │ │ ├── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ │ └── books.service.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json ├── 8_http_example ├── books.json └── complete │ ├── README.md │ ├── api │ └── books │ │ └── books.json │ ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.service.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ └── shared │ │ └── pipes │ │ └── truncate.pipe.ts │ ├── index.html │ ├── package.json │ ├── systemjs.config.js │ └── tsconfig.json ├── 9_routing_solution ├── README.md ├── api │ └── books │ │ └── books.json ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── assets │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── images │ │ │ ├── 107291.jpg │ │ │ ├── 16213.jpg │ │ │ ├── 2095.jpg │ │ │ ├── 2657.jpg │ │ │ ├── 5907.jpg │ │ │ ├── 656.jpg │ │ │ └── navbar.png │ ├── books │ │ ├── book-details │ │ │ ├── book-details.component.html │ │ │ └── book-details.component.ts │ │ ├── book.service.ts │ │ ├── book.ts │ │ └── books-list │ │ │ ├── books-list.component.html │ │ │ └── books-list.component.ts │ ├── css │ │ └── styles.css │ ├── favorites │ │ ├── favorite.component.html │ │ └── favorite.component.ts │ ├── main.ts │ ├── shared │ │ ├── favorite │ │ │ ├── favorite.component.html │ │ │ └── favorite.component.ts │ │ └── pipes │ │ │ └── truncate.pipe.ts │ └── welcome │ │ ├── welcome.component.html │ │ └── welcome.component.ts ├── index.html ├── package.json ├── systemjs.config.js └── tsconfig.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | typings 4 | **/app/**/*.js 5 | **/app/**/*.map 6 | node_modules 7 | jspm_packages 8 | bower_components 9 | 10 | .vs 11 | **/*.sou 12 | **/*.user 13 | bin 14 | obj 15 | packages 16 | .idea 17 | 18 | secrets.js 19 | error.log -------------------------------------------------------------------------------- /10_bookDetails/README.md: -------------------------------------------------------------------------------- 1 | ** Make sure you are running Node.js Version 8.x ** 2 | 3 | 1. Download the files 4 | 5 | 2. Navigate to the root folder location in your terminal. 6 | 7 | 3. Type 'npm install'. This installs the node-module dependencies defined in the package.json 8 | 9 | 4. Type 'npm start'. This launches the TypeScript compiler (tsc) to compile the typescript files into javascript and watches for changes. It also starts the lite-server and launches in the browser to run the application on port 3000. -------------------------------------------------------------------------------- /10_bookDetails/app/app.component.html: -------------------------------------------------------------------------------- 1 |
Quanity: 14 |
21 | Buy Now 22 |Author: {{book.author}}
19 |Description: {{book.description | limitChar: '10'}}
20 |Published On: {{book.releaseDate | date: 'longDate' }}
21 | In Stock:{{ book.inStock ? 'YES' : 'NO'}}
22 | 23 | 24 | 25 | 26 |Reviews {{book.starRating}}
27 | 28 |Dev Books bookstore is a sample application used to learn the fundamentals of building Angular 2 applications.
6 |Find out more about all the books we have in stock.
8 |9 | All Books 10 |
11 |Quanity: 14 |
21 | Buy Now 22 |Quanity: 14 |
21 | Buy Now 22 |Quanity: 14 |
21 | Buy Now 22 |Quanity: 14 |
21 | Buy Now 22 |Quanity: 14 |
21 | Buy Now 22 |Quanity: 14 |
21 | Buy Now 22 |Author: {{book.author}}
19 |Description: {{book.description | limitChar: '10'}}
20 |Published On: {{book.releaseDate | date: 'longDate' }}
21 | In Stock:{{ book.inStock ? 'YES' : 'NO'}}
22 | 23 | 24 | 25 | 26 |Reviews {{book.starRating}}
27 | 28 |Dev Books bookstore is a sample application used to learn the fundamentals of building Angular 2 applications.
6 |Find out more about all the books we have in stock.
8 |9 | All Books 10 |
11 |