Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update using components page #1176

Merged
merged 1 commit into from
Mar 26, 2018
Merged

docs: update using components page #1176

merged 1 commit into from
Mar 26, 2018

Conversation

virkt25
Copy link
Contributor

@virkt25 virkt25 commented Mar 22, 2018

connected to #988

Same as this PR loopbackio/loopback.io#639 but since we moved docs before it landed, re-creating this.

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in packages/example-* were updated

@virkt25 virkt25 self-assigned this Mar 22, 2018
@virkt25 virkt25 added this to the March 2018 milestone Mar 22, 2018
@virkt25 virkt25 requested a review from a team March 22, 2018 23:32
- Providers of additional [Context values](Context.md)
LoopBack 4 was built with extensibility in mind and this includes Components,
which can be allowed to contribute additional artifacts by adding a Mixin
to your Application class. This doesn't change how a a Component is registered
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an extra a in how a a Component


- Models
- [Repositories](Repositories.md)
**Note:** Always check a components instructions to see if it requires
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either a component's or a component?

Components play an important part in the extensibility of LoopBack 4.
A Component makes it easy for independent developers to contribute additional
features to LoopBack. Components serve as a vehicle to group extension
contributions such as Context Bindings and various Artifacts to allow easier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to Context.md here would be great

In general, components can contribute the following items:
Components can contribute the following items:

- [Controllers](Controllers.html)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.md

Components can contribute the following items:

- [Controllers](Controllers.html)
- Providers of additional [Context values](Context.html)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.md


In the future (before the GA release), components will be able to contribute additional items:
- [Repositories](Repositories.html) can be contributed by a Component by adding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.md

In the future (before the GA release), components will be able to contribute additional items:
- [Repositories](Repositories.html) can be contributed by a Component by adding
`RepositoryMixin` from `@loopback/repository` to your Application
- [Booters](Booting-an-Application.html#booters) can be contributed by a Component by adding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.md

Components play an important part in the extensibility of LoopBack 4.
A Component makes it easy for independent developers to contribute additional
features to LoopBack. Components serve as a vehicle to group extension
contributions such as [Context Bindings](Context.md) and various Artifacts to allow easier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Artifacts should be artifacts.


const app = new Application();
```ts
import { RestApplication } from "@loopback/rest";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting does not conform to our style. We don't use extra spaces for the {}.

@virkt25 virkt25 force-pushed the docs/using-components branch from de47851 to d2afe49 Compare March 26, 2018 23:41
@virkt25 virkt25 merged commit 5a79526 into master Mar 26, 2018
@virkt25 virkt25 deleted the docs/using-components branch March 26, 2018 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants