Install or update to Angular user interface v7
For this tutorial you wish to upgrade Angular user interface to version 7+ if you haven’t done therefore already. to try to, therefore, you'll use this command:
npm install -g @angular/cli@latest
create project by cli ng new angular 7
To verify you're on the correct version, run nanogram --version and verify that the output is comparable to this:
The metric weight unit new command can generate a replacement directory, produce our base application and installs the packages outlined in package.json.
Once you're within the project directory you'll begin the event server mistreatment metric weight unit serve:
Install Bootstrap and FontAwesome
We will use npm to install the dependencies:
npm install bootstrap font-awesome
Now that the dependencies square measure put in we will tell Angular command line interface that it must load these designs.
One straightforward thanks to trying this are by the gap the file src/styles.css and adding the subsequent lines:
One straightforward thanks to trying this are by the gap the file src/styles.css and adding the subsequent lines:
@import "~bootstrap/dist/css/bootstrap.css";
@import "~font-awesome/css/font-awesome.css";
@import "~font-awesome/css/font-awesome.css";
No comments:
Post a Comment