Angular 9 SSR 404 Not Found Page with Status code

Create Server Side Response Service @Injectable({ providedIn: ‘root’ }) export class ServerSideResponseService { private response: Response constructor(@Optional() @Inject(RESPONSE) response: any) { this.response = response } setNotFound(message=”not found”): this { if (this.response) { this.response.statusCode = 404 this.response.statusMessage = message } return this } } and use it in Not Found Component @Component({ selector: ‘app-not-found’, templateUrl: ‘./not-found.component.html’, … Read more

Implementing a plugin architecture / plugin system / pluggable framework in Angular 2, 4, 5, 6

Update For Angular 11 I strongly recommend you to take a look at implementation with Webpack 5 Module Federation 🎉 https://github.com/alexzuza/angular-plugin-architecture-with-module-federation Previos version 🛠️ Github demo angular-plugin-architecture Maybe Ivy can change something but for the time being I use the solution that uses Angular CLI Custom Builder and meets the following requirements: AOT avoid duplicate … Read more

Update to Angular v6 – Module not found: Error: Can’t resolve ‘fs’

Since previous answers are quite old, it might help to highlight here that a workaround for Angular9 is just to add the following in your package.json: “browser”: { “fs”: false, “os”: false, “path”: false } This works very well for me. For reference, I found this solution on the official tensorflow/tfjs Github page here.