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.

@NarikInject(DialogService)
dialogService: DialogService;
@NarikInject(DEFAULT_PAGING_INFO, {
pageSize: 20,
availablePageSizes: [10, 20, 50, 100]
})
defaultPagingInfo: IPagingInfo;

Directives

AutoFocus

You can use this directive to auto focus some element.

Detail Documentation

TabGuard

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

Detail Documentation

ComponentLoader

You can use this directive to load a component dynamically.

Detail Documentation