Петров Андрей
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
declarations: [ AppComponent ],
exports: [ AppComponent ],
imports: [ BrowserModule ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { PrimaComponent } from './prima/prima.component';
@NgModule({
declarations: [
AppComponent,
PrimaComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-prima',
templateUrl: './prima.component.html',
styleUrls: ['./prima.component.css']
})
export class PrimaComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
export class PrimaComponent implements OnInit {
title = 'Hello, course!';
constructor() { }
ngOnInit() {
}
}
export class PrimaComponent implements OnInit {
title: string;
constructor() {
this.title = 'Hello, course!';
}
ngOnInit() {
}
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-prima',
templateUrl: './prima.component.html',
styleUrls: ['./prima.component.css']
})
export class PrimaComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
export class PrimaComponent implements OnInit {
title: string;
constructor() {
this.title = 'Hello, course!';
}
ngOnInit() {
}
}
export class PrimaComponent
implements OnInit {
constructor() { }
ngOnInit() {
}
}
export interface OnInit {
ngOnInit(): void;
}