Learn ANGULAR with Real Code Examples
Updated Nov 21, 2025
Installation Setup
Install Node.js and npm
Install Angular CLI via `npm install -g @angular/cli`
Create new project with `ng new project-name`
Serve project locally with `ng serve`
Use IDEs like VSCode with Angular extensions
Environment Setup
Install Node.js and npm
Install Angular CLI globally
Use VSCode or WebStorm with Angular extensions
Check Angular version with `ng version`
Set up project folder with Angular CLI
Config Files
angular.json - build and CLI configuration
tsconfig.json - TypeScript compiler configuration
package.json - dependencies and scripts
src/environments/ - environment-specific configs
karma.conf.js / protractor.conf.js - testing configuration
Cli Commands
ng new project-name - create new Angular project
ng serve - run project locally
ng build --prod - production build
ng generate component my-component - generate component
ng test - run unit tests
Internationalization
Use Angular i18n for translations
Load language-specific JSON files
Translate templates and messages
Format dates and numbers for locales
Support multiple languages dynamically
Accessibility
Use ARIA attributes
Keyboard navigation support
Semantic HTML elements in templates
Accessible forms and labels
Test with screen readers and accessibility tools
Ui Styling
CSS, SCSS, or LESS styling
Angular Material or third-party UI libraries
Responsive design with FlexLayout
Component-specific styles encapsulation
Dynamic class and style binding in templates
State Management
Component state with class properties
Service-based shared state
RxJS subjects and observables
NgRx store for large-scale state
Immutable patterns for predictable behavior
Data Management
HTTP services with HttpClient
Reactive forms for user input
Observables for async streams
Local storage or session storage
NgRx or Akita for state management