forked from alexeagle/closure-compiler-angular-bundling
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7803fa9
commit 15a52a7
Showing
12 changed files
with
286 additions
and
277 deletions.
There are no files selected for viewing
Binary file not shown.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<div>{{ctxProp}}</div> | ||
<input type="text" [value]="ctxProp" (input)="ctxProp = $event.target.value"/> | ||
<button (click)="emitNewValue()">Update Value</button> |
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,12 +1,25 @@ | ||
|
||
import {Component, Injectable} from '@angular/core'; | ||
import {Component} from '@angular/core'; | ||
|
||
import {Subject} from 'rxjs/Subject'; | ||
|
||
@Component({ | ||
selector: 'basic', | ||
templateUrl: './basic.ng.html', | ||
}) | ||
@Injectable() | ||
export class Basic { | ||
ctxProp: string; | ||
constructor() { this.ctxProp = 'initial value'; } | ||
subject = new Subject(); | ||
constructor() { } | ||
|
||
ngOnInit() { | ||
|
||
this.subject.asObservable().subscribe((res:string) => this.ctxProp = res); | ||
|
||
this.subject.next('initial value'); | ||
} | ||
|
||
emitNewValue() { | ||
this.subject.next(new Date().getTime()); | ||
} | ||
} |
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