src/app/page-not-found/page-not-found.component.ts
| encapsulation | ViewEncapsulation.None |
| selector | app-page-not-found |
| styleUrls | page-not-found.component.scss |
| templateUrl | ./page-not-found.component.html |
Methods |
constructor()
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class PageNotFoundComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
<div class="container">
<div>
<h1>Oops!</h1>
<p>The page you were looking for doesn't exist.</p>
</div>
</div>
<!--<div [fxLayout]="'row'" fxLayoutAlign="center center">
<div [fxLayout]="'column'" fxLayoutAlign="center center">
<div>one</div>
<div>two</div>
<div>three</div>
</div>
</div>-->