Skip to content

Commit

Permalink
Merge pull request #492 from JonathanPicques/patch-1
Browse files Browse the repository at this point in the history
doc(): fix small typo in documentation
  • Loading branch information
EisenbergEffect committed Jul 27, 2016
2 parents 4339764 + 15cf449 commit ac3e71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/article/en-US/app-configuration-and-startup.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ There are many things you may want to customize or configure as part of your app

### Configuring the View Location Convention

Aureia uses a _View Strategy_ to locate the view that is associated with a particular component's view-model. If the component doesn't specify its own view strategy, then Aurelia's `ViewLocator` service will use a fallback view strategy. The fallback strategy that is used is named `ConventionalViewStrategy`. This strategy uses the view-model's module id to conventionally map to its view id. For example, if the module id is "welcome${context.language.fileExtension}" then this strategy will look for the view at "welcome.html". The conventional strategy's mapping logic can be changed if a different convention is desired. To do this, during bootstrap, import the `ViewLocator` and replace its `convertOriginToViewUrl` method with your own implementation. Here's some example code:
Aurelia uses a _View Strategy_ to locate the view that is associated with a particular component's view-model. If the component doesn't specify its own view strategy, then Aurelia's `ViewLocator` service will use a fallback view strategy. The fallback strategy that is used is named `ConventionalViewStrategy`. This strategy uses the view-model's module id to conventionally map to its view id. For example, if the module id is "welcome${context.language.fileExtension}" then this strategy will look for the view at "welcome.html". The conventional strategy's mapping logic can be changed if a different convention is desired. To do this, during bootstrap, import the `ViewLocator` and replace its `convertOriginToViewUrl` method with your own implementation. Here's some example code:

<code-listing heading="Custom View Location Convention">
<source-code lang="ES 2015/2016">
Expand Down

0 comments on commit ac3e71d

Please sign in to comment.