Skip to content

Commit 5d1d3b3

Browse files
bencodezenthePunderWoman
authored andcommitted
docs: migrate angular compiler options code to standalone (angular#51467)
PR Close angular#51467
1 parent 1baeca8 commit 5d1d3b3

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

aio/content/examples/angular-compiler-options/src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Component } from '@angular/core';
1+
import {Component} from '@angular/core';
22

33
@Component({
4+
standalone: true,
45
selector: 'app-root',
56
templateUrl: './app.component.html',
67
styleUrls: ['./app.component.css'],

aio/content/examples/angular-compiler-options/src/app/app.module.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1+
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';
22

3-
import { AppModule } from './app/app.module';
3+
import {AppComponent} from './app/app.component';
44

5-
platformBrowserDynamic().bootstrapModule(AppModule)
6-
.catch(err => console.error(err));
5+
bootstrapApplication(AppComponent, {
6+
providers: [provideProtractorTestingSupport()],
7+
}).catch((err) => console.error(err));

0 commit comments

Comments
 (0)