Skip to content

Separate the view-model into its own module. #2

@marshallswain

Description

@marshallswain

The can.Map that makes up the viewModel could be used on its own, so it doesn't necessarily need to be used as a component. I can set it up so that the viewModel is the default export, so doing

import geolocation from 'geo-location';

would let you add it to an existing Map, but would also register the can.Component to be used in templates with the current import API:

<can-import from="geo-location"/>
<geo-location ... />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions