Compare commits

1 Commits
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 { TaskList } from './features/tasks/task-list';
import { TaskDetails } from './features/tasks/task-details'; import { TaskDetails } from './features/tasks/task-details';
import { TaskNew } from './features/tasks/task-new'; import { TaskNew } from './features/tasks/task-new';
import { Dev } from './features/dev';
export const routes: Routes = [ export const routes: Routes = [
{ {
@@ -18,5 +19,10 @@ export const routes: Routes = [
path: 'new', path: 'new',
component: TaskNew, component: TaskNew,
title: 'Новая' 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);
}
}