Skip to content

Commit

Permalink
docs: migrate toh-pt0 to standalone (angular#51575)
Browse files Browse the repository at this point in the history
PR Close angular#51575
  • Loading branch information
bencodezen authored and thePunderWoman committed Aug 31, 2023
1 parent 05e4dbb commit 3658e25
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
9 changes: 5 additions & 4 deletions aio/content/examples/toh-pt0/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Component } from '@angular/core';
import {Component} from '@angular/core';

@Component({
standalone: true,
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
styleUrls: ['./app.component.css'],
})
export class AppComponent {
// #docregion set-title
// #docregion set-title
title = 'Tour of Heroes';
// #enddocregion set-title
// #enddocregion set-title
}
16 changes: 0 additions & 16 deletions aio/content/examples/toh-pt0/src/app/app.module.ts

This file was deleted.

9 changes: 5 additions & 4 deletions aio/content/examples/toh-pt0/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';

import { AppModule } from './app/app.module';
import {AppComponent} from './app/app.component';

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
bootstrapApplication(AppComponent, {
providers: [provideProtractorTestingSupport()],
});
2 changes: 1 addition & 1 deletion aio/content/tutorial/tour-of-heroes/toh-pt0.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ Here are the code files discussed on this page.
* You learned that Angular components display data
* You used the double curly braces of interpolation to display the application title

@reviewed 2022-02-28
@reviewed 2023-08-30

0 comments on commit 3658e25

Please sign in to comment.