Angular Quick Start:
-
To start the Angular, change the directory to [metronic]/theme/angular_new/[demo]/
.
cd theme/angular_new/demo1
-
Install the Angular local project dependencies by executing following commands:
a. npm clear cache --force
This command will clear your old cached node_modules.
b. npm install
This command will install the dependencies in the local node_modules folder.
By default, npm install
will install all modules listed as dependencies in package.json
.
c. ng serve
This command launches the server, watches your files, and rebuilds the app as you make changes to those files.
Using the --open
(or use -o
) option will automatically open your browser on http://localhost:4200/.
* This command will take some time to finsh. Please wait for it to complete.
For more detailed information to install the Angular application, visit this official Angular
documentation website.
Polyfills:
Angular is built on the latest standards of the web platform. Targeting such a wide range of browsers is challenging because they do not support all features of modern browsers.
A particular browser may require at least one polyfill to run any Angular application. You may need additional polyfills for specific features.
To support Angular in IE, open this file [metronic]/theme/angular_new/[demo]/src/polyfills.ts
.
Uncomment all the imports under Browser Polyfills list and classlist.js
Read more about browser support here https://angular.io/guide/browser-support
Internet Explorer workarounds: https://github.com/angular/angular-cli/issues/14455#issuecomment-493739768