Skip to content

Commit

Permalink
feat(framework-configuration): add basicConfiguration helper
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 29, 2016
1 parent a7e4510 commit 6329fc9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/framework-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,19 @@ export class FrameworkConfiguration {
}

/**
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
* Sets up a basic Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().eventAggregator();`
* @return Returns the current FrameworkConfiguration instance.
*/
basicConfiguration(): FrameworkConfiguration {
return this.defaultBindingLanguage().defaultResources().eventAggregator();
}

/**
* Sets up the standard Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().eventAggregator().history().router();`
* @return Returns the current FrameworkConfiguration instance.
*/
standardConfiguration(): FrameworkConfiguration {
return this.defaultBindingLanguage().defaultResources().history().router().eventAggregator();
return this.basicConfiguration().history().router();
}

/**
Expand Down

0 comments on commit 6329fc9

Please sign in to comment.