<meta name="viewport" content="width=device-width, initial-scale=1">.
{
path: '404', component: NotfoundComponent
},
{
path: '**', redirectTo: '/404'
}
1: import { RESPONSE } from '@nguniversal/express-engine/tokens';
2: constructor(@Optional() @Inject(RESPONSE) private response: any) { }
в ngOnInit() прописать
3: this.response.statusCode = 404;
let button = document.querySelector('button')
button.addEventListener('click' , function(){
this.classList.toggle('active')
})
let inp = document.querySelector("input");
inp.addEventListener("input", function() {
if (this.value == 0) {
console.log("0 is not supported");
this.value = "";
} else {
console.log(this.value);
}
});