Learning Angular 2 by 2016

Learning Angular 2 by 2016

Author:2016
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


Our last step is to expose the facade required for this feature context. In all fairness, we are not meant to export everything on every context. We can simply get away with exporting only the main context component, while leaving any other sub component or directive outside the scope of the context facade. That is actually what we will do in here, since it is quite unlikely that any host component would ever need to include in its own view the TaskIconsComponent. We will nevertheless export the TaskTooltipDirective, since its implementation might be reused in the future by some other component dealing with the [task] input properties.

app/tasks/tasks.ts

import TasksComponent from './tasks.component'; import TaskTooltipDirective from './task-tooltip.directive'; const TASKS_DIRECTIVES: any[] = [ TasksComponent, TaskTooltipDirective ]; export { TASKS_DIRECTIVES, TasksComponent, TaskTooltipDirective };



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.