-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathinput-bidings.component.ts
More file actions
28 lines (22 loc) · 796 Bytes
/
input-bidings.component.ts
File metadata and controls
28 lines (22 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { ChangeDetectionStrategy, Component, inject, input, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, RouterExtensions } from '../../../../../packages/angular/src';
@Component({
selector: 'app-input-bidings',
standalone: true,
imports: [
NativeScriptCommonModule,
],
templateUrl: `./input-bidings.component.html`,
styleUrl: './input-bidings.component.css',
changeDetection: ChangeDetectionStrategy.OnPush,
schemas: [NO_ERRORS_SCHEMA]
})
export class InputBidingsComponent {
protected readonly router = inject(RouterExtensions)
name = input(); //Route param
id = input(); //Query param
data = input<string[]>(); // Resolver
navigationTo() {
this.router.navigate(['/bindings/testing2/'], { queryParams: { id: 10}})
}
}