Comment on page
14.-Other-Services,-Components,-Directives
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.
@NarikInject(DialogService)
dialogService: DialogService;
@NarikInject(DEFAULT_PAGING_INFO, {
pageSize: 20,
availablePageSizes: [10, 20, 50, 100]
})
defaultPagingInfo: IPagingInfo;
You can use this directive to auto focus some element.
You can use this directive to force tab be inside an element.
You can use this directive to load a component dynamically.
Last modified 2yr ago