mirror of
https://github.com/Dansen999/at-certification-stock.git
synced 2026-01-11 21:43:34 +00:00
Initial commit
This commit is contained in:
3
src/app/app.component.css
Normal file
3
src/app/app.component.css
Normal file
@@ -0,0 +1,3 @@
|
||||
p {
|
||||
font-family: Lato;
|
||||
}
|
||||
4
src/app/app.component.html
Normal file
4
src/app/app.component.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<hello name="{{ name }}"></hello>
|
||||
<p>
|
||||
Start editing to see some magic happen :)
|
||||
</p>
|
||||
10
src/app/app.component.ts
Normal file
10
src/app/app.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component, VERSION } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: [ './app.component.css' ]
|
||||
})
|
||||
export class AppComponent {
|
||||
name = 'Angular ' + VERSION.major;
|
||||
}
|
||||
13
src/app/app.module.ts
Normal file
13
src/app/app.module.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { HelloComponent } from './hello.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [ BrowserModule, FormsModule ],
|
||||
declarations: [ AppComponent, HelloComponent ],
|
||||
bootstrap: [ AppComponent ]
|
||||
})
|
||||
export class AppModule { }
|
||||
10
src/app/hello.component.ts
Normal file
10
src/app/hello.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'hello',
|
||||
template: `<h1>Hello {{name}}!</h1>`,
|
||||
styles: [`h1 { font-family: Lato; }`]
|
||||
})
|
||||
export class HelloComponent {
|
||||
@Input() name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user