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

Updating Docs for Using / Writing Components #580

Closed
3 tasks
virkt25 opened this issue Sep 19, 2017 · 2 comments
Closed
3 tasks

Updating Docs for Using / Writing Components #580

virkt25 opened this issue Sep 19, 2017 · 2 comments
Assignees
Milestone

Comments

@virkt25
Copy link
Contributor

virkt25 commented Sep 19, 2017

Overview

Mixins can do something useful for components being used in a LBNext application. An example is the RepositoryMixin which takes any repositories declared by a component and binds the repositoryClass to repositories.*. The mixin also binds any repositories declared by the Application in the constructor as well as using the sugar method app.repository().

Writing Components Docs & Using Component Docs need to be updated to show users how they can interact with Mixins (Repository mixin above is just used as an example!).

Acceptance Criteria

Note: Update on loopback.io instead

@jannyHou
Copy link
Contributor

jannyHou commented Oct 17, 2017

We probably should have a single page for concept mixin first
We probably should have a single page for language specific concepts first, and mixin is one of the JS concepts, we have lib function to build mixin to a baseClass.

here is some topic we can add in it:

  • create a mixin function
  • apply mixins by MixinBuilder from lib mixin.ts
  • advanced topic: shall we support interface extends multiple classes as well?

Some refactor work:

  • Move mixin.ts from repository to core
  • Apply RepositoryMixin by MixinBuilder

@jannyHou
Copy link
Contributor

Merged loopbackio/loopback.io#491 and close the issue.

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

No branches or pull requests

5 participants