This repository was archived by the owner on Oct 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +41
-14
lines changed Expand file tree Collapse file tree 6 files changed +41
-14
lines changed Original file line number Diff line number Diff line change 2020 },
2121 "homepage" : " https://github.com/angular/progressive#readme" ,
2222 "devDependencies" : {
23- "@angular/common" : " ^2.0.0-rc.4" ,
24- "@angular/compiler" : " ^2.0.0-rc.4" ,
25- "@angular/platform-browser" : " ^2.0.0-rc.4" ,
26- "@angular/platform-browser-dynamic" : " ^2.0.0-rc.4" ,
23+ "@angular/common" : " ^2.0.0-rc.5" ,
24+ "@angular/compiler" : " ^2.0.0-rc.5" ,
25+ "@angular/forms" : " ^0.3.0" ,
26+ "@angular/platform-browser" : " ^2.0.0-rc.5" ,
27+ "@angular/platform-browser-dynamic" : " ^2.0.0-rc.5" ,
2728 "es6-promise" : " ^3.0.2" ,
2829 "express" : " ^4.13.4" ,
2930 "gulp" : " ^3.9.0" ,
5253 "zone.js" : " ^0.6.5"
5354 },
5455 "dependencies" : {
55- "@angular/core" : " ^2.0.0-rc.4 " ,
56+ "@angular/core" : " ^2.0.0-rc.5 " ,
5657 "base64-js" : " ^1.1.2" ,
5758 "broccoli-caching-writer" : " ^2.2.1" ,
5859 "fs-extra" : " ^0.30.0" ,
Original file line number Diff line number Diff line change 11import './rxjs' ;
22
3- export { NgServiceWorker } from './comm' ;
3+ export { NgServiceWorker , NgPushRegistration } from './comm' ;
4+ export { ServiceWorkerModule } from './module' ;
Original file line number Diff line number Diff line change 1+ import { NgModule } from '@angular/core' ;
2+ import { NgServiceWorker } from './comm' ;
3+
4+ @NgModule ( {
5+ providers : [ NgServiceWorker ] ,
6+ } )
7+ export class ServiceWorkerModule { }
Original file line number Diff line number Diff line change 2727 main : 'bundles/compiler.umd.js' ,
2828 defaultExtension : 'js'
2929 } ,
30+ '@angular/forms' : {
31+ main : 'bundles/forms.umd.js' ,
32+ defaultExtension : 'js'
33+ } ,
3034 '@angular/platform-browser' : {
3135 main : 'bundles/platform-browser.umd.js' ,
3236 defaultExtension : 'js'
Original file line number Diff line number Diff line change 11
2- import { Component } from '@angular/core' ;
3- import { bootstrap } from '@angular/platform-browser-dynamic' ;
2+ import { Component , NgModule } from '@angular/core' ;
3+ import { FormsModule } from '@angular/forms' ;
4+ import { BrowserModule } from '@angular/platform-browser' ;
5+ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
46import { ControllerCmp } from './src/controller' ;
5- import { NgServiceWorker } from '@angular/service-worker' ;
7+ import { ServiceWorkerModule } from '@angular/service-worker' ;
68
79
810@Component ( {
@@ -15,6 +17,18 @@ import {NgServiceWorker} from '@angular/service-worker';
1517} )
1618class SwTestingHarnessCmp { }
1719
18- bootstrap ( SwTestingHarnessCmp , [
19- NgServiceWorker
20- ] ) ;
20+ @NgModule ( {
21+ declarations : [
22+ SwTestingHarnessCmp ,
23+ ControllerCmp ,
24+ ] ,
25+ imports : [
26+ BrowserModule ,
27+ FormsModule ,
28+ ServiceWorkerModule ,
29+ ] ,
30+ bootstrap : [ SwTestingHarnessCmp ] ,
31+ } )
32+ export class SwTestingHarnessModule { }
33+
34+ platformBrowserDynamic ( ) . bootstrapModule ( SwTestingHarnessModule ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import 'rxjs/add/operator/startWith';
3030
3131<!-- action configuration -->
3232<div [ngSwitch]="action">
33- <div *ngSwitchWhen ="'MAKE_REQUEST'">
33+ <div *ngSwitchCase ="'MAKE_REQUEST'">
3434 <div>
3535 <label for="requestUrl">
3636 Url:
@@ -39,7 +39,7 @@ import 'rxjs/add/operator/startWith';
3939 </div>
4040 <button id="requestAction" (click)="request(requestUrl.value)">Make request</button>
4141 </div>
42- <div *ngSwitchWhen ="'SW_INSTALL'">
42+ <div *ngSwitchCase ="'SW_INSTALL'">
4343 <div>
4444 <label for="workerUrl">
4545 Worker:
You can’t perform that action at this time.
0 commit comments