Skip to content

Commit

Permalink
Merge pull request aurelia#696 from gnukev/patch-1
Browse files Browse the repository at this point in the history
doc (creating-component): update component name in the example
  • Loading branch information
EisenbergEffect authored Feb 1, 2017
2 parents f7a21aa + 0ef0d83 commit 964e398
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 964e398

Please sign in to comment.