From 15cf4495aaa0853e1705b8353f78ac3b0aa460fe Mon Sep 17 00:00:00 2001 From: Jonathan Picques Date: Wed, 27 Jul 2016 17:47:32 +0200 Subject: [PATCH] Update app-configuration-and-startup.md Small typo on Aureia => Aurelia --- doc/article/en-US/app-configuration-and-startup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/article/en-US/app-configuration-and-startup.md b/doc/article/en-US/app-configuration-and-startup.md index 8a4c2f7e..ab23ff7b 100644 --- a/doc/article/en-US/app-configuration-and-startup.md +++ b/doc/article/en-US/app-configuration-and-startup.md @@ -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: