Skip to content

Commit

Permalink
docs(aio): add Alex's updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kapunahelewong committed Dec 4, 2017
1 parent 5e207d0 commit aedadf6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Injectable} from '@angular/core';
import { SwUpdate } from '@angular/service-worker';

import { Observable } from 'rxjs/Observable';
Expand All @@ -8,6 +9,7 @@ function promptUser(event): boolean {
}

// #docregion sw-check-update
@Injectable()
export class CheckForUpdateService {

constructor(updates: SwUpdate) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {Injectable} from '@angular/core';
import { SwUpdate } from '@angular/service-worker';

// #docregion sw-update
@Injectable()
export class LogUpdateService {

constructor(updates: SwUpdate) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import {Injectable} from '@angular/core';
import { SwUpdate } from '@angular/service-worker';

function promptUser(event): boolean {
return true;
}

// #docregion sw-activate
@Injectable()
export class PromptUpdateService {

constructor(updates: SwUpdate) {
Expand Down

0 comments on commit aedadf6

Please sign in to comment.