Skip to content

Commit 6329fc9

Browse files
feat(framework-configuration): add basicConfiguration helper
1 parent a7e4510 commit 6329fc9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/framework-configuration.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,19 @@ export class FrameworkConfiguration {
327327
}
328328

329329
/**
330-
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
330+
* Sets up a basic Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().eventAggregator();`
331+
* @return Returns the current FrameworkConfiguration instance.
332+
*/
333+
basicConfiguration(): FrameworkConfiguration {
334+
return this.defaultBindingLanguage().defaultResources().eventAggregator();
335+
}
336+
337+
/**
338+
* Sets up the standard Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().eventAggregator().history().router();`
331339
* @return Returns the current FrameworkConfiguration instance.
332340
*/
333341
standardConfiguration(): FrameworkConfiguration {
334-
return this.defaultBindingLanguage().defaultResources().history().router().eventAggregator();
342+
return this.basicConfiguration().history().router();
335343
}
336344

337345
/**

0 commit comments

Comments
 (0)