Category Angular 5

Print File From Api in Angular

Download File From Api in Anuglar

Use setTimeout without function

ngx-datatable add server side pagination

If getting npm installation error

It might be related to corruption in Angular Packages or incompatibility of packages.

Please follow the below steps to solve the issue.

Update

ASP.NET Boilerplate suggests here to use yarn because npm has some problems. It is slow and can not consistently resolve dependencies, yarn solves those problems and it is compatible to npm as well.

Angular 5 Commands

Build for production

Build for dev

Run project using different port

Create component

Create module

Run angular built in localhost

First Step:

Run the command

or

Second Step:

Change in index.html

Third Step:

Put all files into server(may be htdocs in localhost or any server)

Angular 2 Routing : 404 page not found on refresh

Method — 1

In app.module.ts:

  • Add imports:

And in NgMoudle provider, add:

Example (app.module.ts):

If ngx-toastr is not working

Add this line in index.html file

IF Else and loop in angular 5