Angular Full Learning
Angular Full Learning
How To Install
Structure
Basic
MCV
Advance
Routing
API
Forms
Interview
Project
What is new in Angular 12
Angular 12 Full
Course
- Create a new folder of angular project by typing cmd in
Page 1 of 9
the location bar in file explorer and type "ng new (your
project name", this should create a new folder.
- To enter your folder and make changes type cd (your
folder name)
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
Page 2 of 9
Introduction:
What is angular?
All angulars are same, Angular 12 has only minor updates. Angular is
front-end development framework for java. its used because its fast and
it has alot of options which is easier, it also makes single page
application the website doesn't reload on angular programming and the
project speed is faster. it is For develop single page applocation. the
Angular is made by Google.
It is An Open Source (Free) and we use Npm (note package manager)
and command line interface(CLI), it helps in fast project development.
Angular vs Angular.js
Angular is a re-written version of Angular.js, Angular.js was the first
version of Angular and was released before 2016, the whole framwork
was changed.
Page 3 of 9
-node_modules
-src folder
app
assets
enviornments
index.html
main.js
style.css
Page 4 of 9
Also when making a project in Angular there
are a lot of libraries like angular, form, some
are routing, some are css and some are for
testings!
------------------------------------------------------------------------------------
(Src - It is the most important folder because the developer does his 99%
of his work in this folder the dev might change some confirugration
outside this folder but all the work is done inside this folder
Page 5 of 9
test the work. we can make alot of enviornment files if you want!
This will result in your text visible on the website blank page.
Using “{{your title name from app.component.ts}} will show the title of your
project
EXAMPLE
<h1>Hello Angular {{title}}<h1> #this will show Hello angular Blog( my title
name is blog) on the website blank page.
Note: You can use the command <br> to break a line in <h1> and create a new
one without having to go write a new heading in a new line again but this is not
really recommended because it can mess up/confuse you when finding the code.
Page 7 of 9
Interpolation
What is Interpolation?
It is used in our HTML page to Display Dynamic Data,
Dynamic data are the property in app.component.ts and
Interpolation are the brackets “{}” so with the help of
Interpolation we display Dynamic Data in our HTML page.
The data in app.component.ts can come from our logic,
property, functions or also API so these data are also known
as Dynamic Data.
Page 9 of 9