2015-09-03 22:01:36 -07:00
|
|
|
import {bootstrap} from 'angular2/bootstrap';
|
2015-10-10 22:11:13 -07:00
|
|
|
import {
|
|
|
|
bind,
|
|
|
|
provide,
|
|
|
|
Component,
|
|
|
|
Directive,
|
|
|
|
UrlResolver,
|
|
|
|
View,
|
|
|
|
ViewEncapsulation
|
|
|
|
} from 'angular2/core';
|
2015-05-22 13:01:23 -07:00
|
|
|
import {MdCheckbox} from 'angular2_material/src/components/checkbox/checkbox';
|
|
|
|
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
|
2015-09-03 22:01:36 -07:00
|
|
|
|
2015-05-22 13:01:23 -07:00
|
|
|
|
2015-08-04 15:32:17 -07:00
|
|
|
@Component({
|
|
|
|
selector: 'demo-app',
|
|
|
|
})
|
|
|
|
@View({
|
|
|
|
templateUrl: './demo_app.html',
|
|
|
|
directives: [MdCheckbox],
|
2015-08-28 21:03:19 -07:00
|
|
|
encapsulation: ViewEncapsulation.None
|
2015-08-04 15:32:17 -07:00
|
|
|
})
|
2015-05-22 13:01:23 -07:00
|
|
|
class DemoApp {
|
|
|
|
toggleCount: number;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.toggleCount = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
increment() {
|
|
|
|
this.toggleCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export function main() {
|
|
|
|
commonDemoSetup();
|
2015-10-10 22:11:13 -07:00
|
|
|
bootstrap(DemoApp, [provide(UrlResolver, {asValue: new DemoUrlResolver()})]);
|
2015-05-22 13:01:23 -07:00
|
|
|
}
|