-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: commonIssues related to APIs in the @angular/common packageIssues related to APIs in the @angular/common packageeffort2: daysfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Milestone
Description
I had a request for directive aliases, for example:
shared.js
export SHARED_DEPS = [Dep1, Dep2, Dep3];
component1.js
import {SHARED_DEPS} from 'shared.js';
@Component({...})
@View({directives: SHARED_DEPS})
class Component1 {...}
component2.js
import {SHARED_DEPS} from 'shared.js';
import {AdditionalDep} from 'component2_deps.js';
@Component({...})
@View({directives: [SHARED_DEPS, AdditionalDep]})
class Component2 {...}
Component1 would depend on Dep1, Dep2, and Dep3, while Component2 would be those as well as AdditionalDep.
@yjbanov , @mhevery , does Angular 2 Js already support this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: commonIssues related to APIs in the @angular/common packageIssues related to APIs in the @angular/common packageeffort2: daysfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues