Skip to content

Commit 8527206

Browse files
christianliebelvikerman
authored andcommitted
feat(@schematics/angular): feature PWA in CLI app
Feature PWA support via `@angular/pwa` directly in the new CLI app.
1 parent a8b3394 commit 8527206

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/schematics/angular/application/other-files/app.component.html.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@
384384
<span>Angular Material</span>
385385
</div>
386386

387+
<div class="card card-small" (click)="selection.value = 'pwa'" tabindex="0">
388+
<svg class="material-icons" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
389+
390+
<span>Add PWA Support</span>
391+
</div>
392+
387393
<div class="card card-small" (click)="selection.value = 'dependency'" tabindex="0">
388394
<svg class="material-icons" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
389395

@@ -407,6 +413,7 @@
407413
<div class="terminal" [ngSwitch]="selection.value">
408414
<pre *ngSwitchDefault>ng generate component xyz</pre>
409415
<pre *ngSwitchCase="'material'">ng add @angular/material</pre>
416+
<pre *ngSwitchCase="'pwa'">ng add @angular/pwa</pre>
410417
<pre *ngSwitchCase="'dependency'">ng add _____</pre>
411418
<pre *ngSwitchCase="'test'">ng test</pre>
412419
<pre *ngSwitchCase="'build'">ng build --prod</pre>

0 commit comments

Comments
 (0)