Skip to content

Commit e08b838

Browse files
jonnysampshansl
authored andcommitted
build(broccoli): Expose options property of Angular2App to be compatible with existing ember addons (angular#1229)
Motivation: allow angular-cli builds to take advantage of other brocolli plugins that do double duty as ember-cli addons. Specifically, `broccoli-asset-rev` Expose the `_options` property as a public getter through `options` to allow the ember addon to query for options without throwing fatal build errors Closes angular#1226
1 parent 6f0ebfb commit e08b838

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/broccoli/angular2-app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ class Angular2App extends BroccoliPlugin {
5353
this._tree = this._buildTree();
5454
}
5555

56+
/**
57+
* For compatibility with Ember addons
58+
* @returns {*|{}}
59+
*/
60+
get options(){
61+
return this._options;
62+
}
63+
5664
/**
5765
* For backward compatibility.
5866
* @public

0 commit comments

Comments
 (0)