Skip to content

Commit 5afb782

Browse files
author
majid noureddine
committed
generate component architecture
1 parent 4a8c00e commit 5afb782

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import { NgModule } from '@angular/core';
33
import { AppComponent } from './app.component';
44
import { AppareilComponent } from './appareil/appareil.component';
55
import { FormsModule } from '@angular/forms';
6+
import { BlogComponent } from './blog/blog.component';
67

78
@NgModule({
89
declarations: [
910
AppComponent,
10-
AppareilComponent
11+
AppareilComponent,
12+
BlogComponent
1113
],
1214
imports: [
1315
BrowserModule,

src/app/blog/blog.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>blog works!</p>

src/app/blog/blog.component.scss

Whitespace-only changes.

src/app/blog/blog.component.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-blog',
5+
templateUrl: './blog.component.html',
6+
styleUrls: ['./blog.component.scss']
7+
})
8+
export class BlogComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)