Skip to content

Commit ac3e71d

Browse files
Merge pull request #492 from JonathanPicques/patch-1
doc(): fix small typo in documentation
2 parents 4339764 + 15cf449 commit ac3e71d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/article/en-US/app-configuration-and-startup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ There are many things you may want to customize or configure as part of your app
452452

453453
### Configuring the View Location Convention
454454

455-
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:
455+
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:
456456

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

0 commit comments

Comments
 (0)