Project - Realestate
Project - Realestate
1. Routing:
Using Service: Services are used to write business logic and data
interactions, which can be injected into components to enhance
modularity and reusability.
3. Advanced Features:
Pipes: Transforms data right in the template, useful for formatting
strings, currency amounts, dates, and other display data.
Video – 2:
What is Angular?
Single Page Applications (SPAs) are web applications that load a single
HTML page and dynamically update content as the user interacts with
the app, without reloading the entire page. This approach significantly
improves user experience by making web applications behave more
like desktop applications. A common use case is complex user
interfaces like dashboards, where multiple pieces of information update
frequently without page refreshes.
To create and run your first Angular application, use the following
Angular CLI commands:
After setting up your Angular project, you can open it in Visual Studio
Code (VS Code) by navigating to the project directory and running code
.. This command opens VS Code with your project loaded, ready for
development.
Video 3:
Release of Angular 9 and Major Compiler Changes
Angular 9 was released as a significant update to the
framework, primarily revolving around the default adoption
of the Ivy compiler. This new compiler brought notable
changes including:
Video-4
assets/: Used for static assets like images, fonts, and icons.
Install Node.js:
Commands:
nvm install 12
nvm use 12
Commands:
node -v
Commands:
Commands:
ng new my-angular9-app
Commands:
cd my-angular9-app
Commands
ng serve
video 5
VS Code Extensions
Decorator Properties:
Separating HTML/CSS
Link them in the component's TypeScript file using the templateUrl and
styleUrls properties.
Custom Path: Specify a custom path for the component's files with ng g c
path/to/component-name.
Manual Creation:
Manually create a new folder and add TypeScript, HTML, and CSS files
corresponding to the new component. Define the component class, selector,
template, and styles manually in the TypeScript file.
Utilize features in IDEs like Visual Studio Code that allow you to right-click on
a directory (such as the app folder) and select "Generate Component" or
similar options from the context menu. This method often integrates with
Angular CLI behind the scenes but provides a GUI-based approach.