step 2
This commit is contained in:
1
first-app/src/app/app.html
Normal file
1
first-app/src/app/app.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Hello world!</h1>
|
||||
@@ -3,9 +3,7 @@ import {Component} from '@angular/core';
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [],
|
||||
template: `
|
||||
<h1>Hello world!</h1>
|
||||
`,
|
||||
templateUrl: './app.html',
|
||||
styleUrls: ['./app.css'],
|
||||
})
|
||||
export class App {
|
||||
|
||||
15
first-app/src/app/home/home.ts
Normal file
15
first-app/src/app/home/home.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
imports: [],
|
||||
template: `
|
||||
<p>
|
||||
home works!
|
||||
</p>
|
||||
`,
|
||||
styles: ``
|
||||
})
|
||||
export class Home {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user