-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a bug fix with pipes sample plus recovery of the accidentally deleted…
… files
- Loading branch information
Showing
520 changed files
with
194 additions
and
95 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file modified
0
chapter10/auction/client/src/app/components/application/application.css
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter2/auction/app/components/product-item/product-item.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter3/auction/app/components/product-detail/product-detail.ts
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
chapter3/auction/app/components/product-item/product-item.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter3/router_samples/app/components/luxury/luxury.component.ts
100644 → 100755
Empty file.
Empty file modified
0
chapter3/router_samples/app/components/luxury/luxury.lazy.module.ts
100644 → 100755
Empty file.
Empty file modified
0
chapter3/router_samples/app/components/luxury/luxury.module.ts
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
44 changes: 25 additions & 19 deletions
44
chapter3/router_samples/app/main-with-guard-di.ts
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
import {bootstrap} from '@angular/platform-browser-dynamic'; | ||
import {Component} from '@angular/core'; | ||
import {Component, NgModule } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import {LocationStrategy, HashLocationStrategy} from '@angular/common'; | ||
import {provideRouter, ROUTER_DIRECTIVES} from '@angular/router'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import {HomeComponent} from "./components/home"; | ||
import {ProductDetailComponent} from "./components/product"; | ||
import {LoginGuard} from "./guards/login.guard"; | ||
import {UnsavedChangesGuard} from "./guards/unsaved_changes.guard"; | ||
|
||
import {HomeComponent} from './components/home'; | ||
import {ProductDetailComponent} from './components/product'; | ||
|
||
import {LoginGuard} from './guards/login.guard'; | ||
import {UnsavedChangesGuard} from './guards/unsaved_changes.guard'; | ||
const routes: Routes = [ | ||
{path: '', component: HomeComponent}, | ||
{path: 'product', component: ProductDetailComponent, | ||
canActivate:[LoginGuard], canDeactivate:[UnsavedChangesGuard]} | ||
]; | ||
|
||
@Component({ | ||
selector: 'basic-routing', | ||
directives: [ROUTER_DIRECTIVES], | ||
template: ` | ||
<a [routerLink]="['/']">Home</a> | ||
<a [routerLink]="['/product']">Product Details</a> | ||
<router-outlet></router-outlet> | ||
` | ||
}) | ||
class RootComponent { | ||
class AppComponent { | ||
|
||
constructor (private _loginGuard:LoginGuard){} | ||
} | ||
|
||
bootstrap(RootComponent, [ | ||
provideRouter([ | ||
{path: '', component: HomeComponent}, | ||
{path: 'product', component: ProductDetailComponent, | ||
canActivate:[LoginGuard], canDeactivate:[UnsavedChangesGuard]} | ||
]), | ||
LoginGuard, UnsavedChangesGuard, | ||
{provide: LocationStrategy, useClass: HashLocationStrategy} | ||
]); | ||
|
||
@NgModule({ | ||
imports: [ BrowserModule, RouterModule.forRoot(routes)], | ||
declarations: [ AppComponent, HomeComponent, ProductDetailComponent], | ||
providers:[{provide: LocationStrategy, useClass: HashLocationStrategy}, | ||
LoginGuard, UnsavedChangesGuard], | ||
bootstrap: [ AppComponent ] | ||
}) | ||
class AppModule { } | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter4/auction/app/components/product-detail/product-detail.html
100644 → 100755
Empty file.
Empty file modified
0
chapter4/auction/app/components/product-detail/product-detail.ts
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
chapter4/auction/app/components/product-item/product-item.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter5/auction/app/components/product-detail/product-detail.html
100644 → 100755
Empty file.
Empty file modified
0
chapter5/auction/app/components/product-detail/product-detail.ts
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
chapter5/auction/app/components/product-item/product-item.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter5/bindings_and_events/app/binding/[not-in-use] attribute-binding.ts
100644 → 100755
Empty file.
Empty file modified
0
chapter5/bindings_and_events/app/binding/[not-in-use] property-binding.ts
100644 → 100755
Empty file.
Empty file modified
0
chapter5/bindings_and_events/app/binding/attribute-vs-property.ts
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified
0
chapter5/bindings_and_events/app/observables/observable-events-http.ts
100644 → 100755
Empty file.
Empty file modified
0
chapter5/bindings_and_events/app/observables/observable-events.ts
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.