ANGULAR
* NPM stand for node package manager
* npm install -g @angular/cli is used to install angular cli in your computer sytem
* ng new my-app - to create new project name my-app
* CORS , We need to configure the cors because django drf run on different port and angular run on different port , so to tell django ist's ok that they both run on different port we need to configure the CORS
* angular use httpClient to make a HTTP call to send request to the backedn
* Service is used for API call in angular and component is useful for UI
* ng g c components/passengerDetails -------> This is used for creating the component
* ng g s services/login - for creating the service
*
Comments
Post a Comment