Angular 9 Project from Scratch using Latest Angular CLI
469
0
·
2020/01/20
·
3 mins read
☕
WriterShelf™ is a unique multiple pen name blogging and forum platform. Protect relationships and your privacy. Take your writing in new directions. ** Join WriterShelf**
WriterShelf™ is an open writing platform. The views, information and opinions in this article are those of the author.
Article info
Categories:
Tags:
Date:
Published: 2020/01/20 - Updated: 2020/01/20
Total: 611 words
Like
or Dislike
More from this author
More to explore
Prerequisite
Setup Node.Js & NPM Environment
You must have set up present-day Node JS installation to your system.
If you do no longer know how to set up and configure Node & NPM in your machine. Then, do test out the subsequent tutorial:
Downloading and installing Node.Js and npm on macOS, Windows & Linux.
If you want to learn more about Angular, then The Complete Angular Course is a great course, to begin with.
Install Latest Angular CLI Version
Run the subsequent command to install the modern model of Angular CLI (version 9+), Ignore this step if Angular CLI is already installed.
Setting up a New Angular 9 Project
A modern-day Angular mission comes with.Css files. There are some better ways to manipulate a stylesheet inside the angular emission. You can installation SCSS, SASS or LESS in our simple Angular challenge. Learn more Angularjs Online Training Hyderabad
Enter the command and hit input to installation a contemporary Angular 9 assignment:
In the terminal you will be asked to put in Angular Routing record, this report contains the code for handling the navigation in Angular.
Angular CLI also asks you to pick stylesheet layout from Sass, Less, Stylus, SCSS, and CSS.
Add Bootstrap four in Angular 9 App
Bootstrap is a UI framework for developing Sleek, intuitive, and effective front-end applications.
So we are prepared to combine Bootstrap four in Angular nine utility using trendy Angular CLI.
Run the following command inside the terminal:
Once, the Bootstrap is downloaded in your project, then register bootstrap.scss files in the angular.json file.
Add Font Awesome 5 Icons Library in Angular
Let’s start integrating Font Awesome five icons library in our Angular task.
Type the subsequent command within the terminal and hit enter.
Afterwards, You can easily use any Font Awesome5 icons in your project.
Just visit Font Awesome5 website and search for any free icon you’d like to use in your project.
To setup, NG Bootstrap run the following command in Angular CLI:
Copy the icon code from FontAwesome5 website.
Go to your any app.component.html file and paste the given below code.
Add NGBootstrap Widget Library in Angular
NG Bootstrap is a Bootstrap widgets library, it doesn’t require any 3rd birthday celebration dependency to run the local Bootstrap widgets that run on jQuery.
To setup, NG Bootstrap run the following command in Angular CLI:
Once the NgBootstrap is installed in your assignment then visit app.Module.Ts record. Import the NgbModule module and declare in the imports array:
Now you could use any of the given underneath NG Bootstrap widget for your Angular assignment.
Import most effective required NG Bootstrap widget for your Angular template, this can assist in maintaining the overall app size.