Skip to content

Commit

Permalink
fix: Add route for trim
Browse files Browse the repository at this point in the history
  • Loading branch information
lovepreetjassal committed Apr 10, 2024
1 parent 63b873a commit 1d8afd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';

@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
imports: [RouterOutlet,RouterLink, RouterLinkActive],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/main/main.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>main works!</p>
<a routerLink="/trim">Trim</a>
3 changes: 2 additions & 1 deletion src/app/components/main/main.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
@Component({
selector: 'app-main',
standalone: true,
imports: [],
imports: [RouterOutlet,RouterLink, RouterLinkActive],
templateUrl: './main.component.html',
styleUrl: './main.component.css'
})
Expand Down

0 comments on commit 1d8afd3

Please sign in to comment.