Define and export the jwtInterceptor function as below: (save in jwtInterceptor.ts)
import { HttpRequest, HttpHandlerFn } from '@angular/common/http';
This blog is dedicated to share my experience during my development as a purpose of notes and explorer various web / enterprise technologies like JAVA , JEE , Spring ,hybris, Portal , Jquery , RAI , JMS, Weblogic , SSL , Security, CS, MAC< Linux, Windows, Search, IOT, Arduino, Machine Learning, Tips, Angular, Node JS, React, Mac, Windows, Stack, Exception, Error etc. with examples.
Define and export the jwtInterceptor function as below: (save in jwtInterceptor.ts)
import { HttpRequest, HttpHandlerFn } from '@angular/common/http';
Recently encountered error below while building an app in Angular
The `*ngFor` directive was used in the template, but neither the `NgFor` directive nor the `CommonModule` was imported
Pretty simple fix is that imoer common module in your component something like below
If we get following warning :
Warning: bundle initial exceeded maximum budget.
then to solev this we need to increase budget in angular.json
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
Cheers,
Hi,
I was facing issue while setting up debugger with chrome with Angular app. My Chrome Launch configuration was :
After investigation found that it was not able to figure out webRoot correctly since my app was one more level down into app folder hence i have changed webRoot Path as below which did trick for me :)
Relaunched the debug and it worked.
Cheers,
Kapil