Compare commits
1
Commits
b8e7509b79
...
playground
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f3068f5a2 |
@@ -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'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user