feat: Добавил роут dev для эксперементов в процессе изучения

This commit is contained in:
2026-09-11 14:53:57 +03:00
parent f881eba1f1
commit 1f3068f5a2
2 changed files with 33 additions and 0 deletions
+6
View File
@@ -2,6 +2,7 @@ import { Routes } from '@angular/router';
import { TaskList } from './features/tasks/task-list';
import { TaskDetails } from './features/tasks/task-details';
import { TaskNew } from './features/tasks/task-new';
import { Dev } from './features/dev';
export const routes: Routes = [
{
@@ -18,5 +19,10 @@ export const routes: Routes = [
path: 'new',
component: TaskNew,
title: 'Новая'
},
{
path: 'dev',
component: Dev,
title: 'Dev'
}
];
+27
View File
@@ -0,0 +1,27 @@
import { Component, signal } from '@angular/core';
@Component({
imports: [],
selector: 'ksk-crm-dev',
styles: `
.outlined {
border: 1px solid var(--color-primary);
}
.rounded {
border-radius: 3px;
}
`,
template: `
<p [class.outlined]="isOutlined()" >dev works!</p>
<button (click)="handleAction()">Action</button>
`,
})
export class Dev {
outlined = signal<string[]>(["rounded"])
isOutlined = signal(false);
handleAction() {
this.isOutlined.set(true);
}
}