Angular Introduction.
Hey Everyone so I am Writing this article to share my knowledge on Angular.
So before i dive in into any thing further let’s Understand
What is Angular?
Angular is web framework that help developer to build fast, reliable application. Angular has provided the capabilities to work on component level concept. Build component independently and inject where ever needed on the page. Before angular we were used to use html, js , css to build web pages. That are difficult to use maintain. It makes code more heavier. Angular was introduced by Google in 2016. It uses the typescript language.
Why we use Angular ?
It offers two-way data binding, code reusability, client-side rendering, and improved performance.
It uses a declarative UI a component-based architecture, which make it easy to develop, maintain, and scale applications.
It supports progressive web apps and single-page applications, which enhance user experience and engagement.
It ensures code consistency and easy testing, which improve security and quality.
Components.
Get gshrey03’s stories in your inbox
Join Medium for free to get updates from this writer.
Components are the fundamental building block for creating applications in Angular.
An Angular component is identified by the @Component
For example on Amazon we have price section is one component. Once we create that component we can utilize anywhere on the web application where ever we needed.
One Way Binding and two way Binding.
One way Binding Simply means to accept the data from web page and store it. In two way binding we accept the data and show it again to web page to other component.
When ever we create the Form and user enter the value in the form and we show that value on the Page then it is called the Two Way Binding.
Fetching Dynamic Data
In angular we can provide the dynamic data to html Structure. Angular uses the double curly brace syntax in order to distinguish between static and dynamic content.
ngOnIt
It is a lifecycle hook method in Angular that is called after the constructor and after Angular has initialized all the component’s input properties. It is commonly used to perform initialization tasks that require the component to be fully set up. It’s commonly used to fetch initial data for the component from a service.








