NARIK
Search…
14.-Other-Services,-Components,-Directives

Decorators

@NarikInject

NarikInject is a decorator that enables you to do property injection. Property injection is very useful when you don't want to have a lot of constructor's parameters, particularly in base classes.
1
@NarikInject(DialogService)
2
dialogService: DialogService;
3
4
@NarikInject(DEFAULT_PAGING_INFO, {
5
pageSize: 20,
6
availablePageSizes: [10, 20, 50, 100]
7
})
8
defaultPagingInfo: IPagingInfo;
Copied!

Directives

AutoFocus

You can use this directive to auto focus some element.

TabGuard

You can use this directive to force tab be inside an element.

ComponentLoader

You can use this directive to load a component dynamically.
Last modified 7mo ago