Skip to content

Commit

Permalink
Update component name in the example
Browse files Browse the repository at this point in the history
Updating from "CustomDetail" => "CustomerDetail" under the "Component Instantiation Through Dependency Injection (DI)" section to match the code block
  • Loading branch information
gnukev authored Jan 18, 2017
1 parent 08e491c commit 0ef0d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/article/en-US/creating-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Now you know how to build basic components. What's great about this knowledge? I

View-models and other interface elements, such as Custom Elements and Custom Attributes, are created as classes which are instantiated by the framework using a dependency injection container. Code written in this style is easy to modularize and test. Rather than creating large classes, you can break things down into small objects that collaborate to achieve a goal. The DI can then put the pieces together for you at runtime.

In order to leverage DI, you simply decorate your class to tell the framework what it should pass to its constructor. Here's an example of a CustomDetail component that depends on Aurelia's fetch client.
In order to leverage DI, you simply decorate your class to tell the framework what it should pass to its constructor. Here's an example of a CustomerDetail component that depends on Aurelia's fetch client.

<code-listing heading="customer-detail${context.language.fileExtension}">
<source-code lang="ES 2016">
Expand Down

0 comments on commit 0ef0d83

Please sign in to comment.