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({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [],
|
imports: [],
|
||||||
template: `
|
templateUrl: './app.html',
|
||||||
<h1>Hello world!</h1>
|
|
||||||
`,
|
|
||||||
styleUrls: ['./app.css'],
|
styleUrls: ['./app.css'],
|
||||||
})
|
})
|
||||||
export class App {
|
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