31.1. Base components to decompose user.component (#31 Split user.component into several components)

This commit is contained in:
Art
2021-10-08 11:50:20 +03:00
parent 05b5a9fb0e
commit 209c0d6afe
25 changed files with 149 additions and 1 deletions

View File

@ -0,0 +1,2 @@
<p>management works!</p>
<router-outlet></router-outlet>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-management',
templateUrl: './management.component.html',
styleUrls: ['./management.component.css']
})
export class ManagementComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>profile works!</p>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-profile',
templateUrl: './profile.component.html',
styleUrls: ['./profile.component.css']
})
export class ProfileComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>settings works!</p>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.css']
})
export class SettingsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>user-edit works!</p>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-user-edit',
templateUrl: './user-edit.component.html',
styleUrls: ['./user-edit.component.css']
})
export class UserEditComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1 @@
<p>user-view works!</p>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-user-view',
templateUrl: './user-view.component.html',
styleUrls: ['./user-view.component.css']
})
export class UserViewComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-user-row',
templateUrl: './user-row.component.html',
styleUrls: ['./user-row.component.css']
})
export class UserRowComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,2 @@
<p>users-table works!</p>
<app-user-row class="row" *ngFor="let i of [1,2,3]"></app-user-row>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-users-table',
templateUrl: './users-table.component.html',
styleUrls: ['./users-table.component.css']
})
export class UsersTableComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,3 @@
<p>users works!</p>
<app-users-table></app-users-table>
<router-outlet></router-outlet>

View File

@ -0,0 +1,15 @@
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-users',
templateUrl: './users.component.html',
styleUrls: ['./users.component.css']
})
export class UsersComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}