Skip to content

TechMadi/window-to-angular

Repository files navigation

Picsum

This project was generated with Angular CLI version 18.2.6.

Prerequisites

It would be good to have some experiences in :-

  • HTML and Css
  • Javascript / Typescript
  • A sample landing

Installation

Learn about installation on the documentation

npm install -g @angular/cli

After installing check the version of angular to be sure

ng version

Currently we are at Angular 19

Components

Components are the building blocks of angular. For each component generated you get a

  • Typescript file
  • Html file ( Template)
  • Styling File
  • Spec file ( Testing)

To generate a component run ng g c componentName

Read More about components

Routing

Routing is like a compass in Angular Routing is handled my RoutingModule

<!-- app.component.html -->
<router-outlet></router-outlet>

Router Outlet is what load the routes written in the app.component.ts

Normal routing

{
   path: string,
   component:ComponentName
}

Default Redirecting

{
   path:string
   pathMatch: string 
   redirectUrl:string
}

Page Not Found

{
   path:"**",
   component:ComponentName
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published