* [Installation](#installation) * [Usage](#usage) * [API](#api) * [Documentation](#documentation) * [Changelog](#changelog)
$ cnpm install @adobe/cq-spa-component-mapping
The package has been moved. Please use @adobe/aem-spa-component-mapping
npm install @adobe/cq-spa-component-mapping
This module provides helpers to map resource types with SPA components.
The MapTo
helper can be used to directly associate resource type(s) with a given SPA component.
import { MapTo } from '@adobe/spa-component-mapping';
class MyComponent {
...
}
export default MapTo('my/resource/type')(MyComponent);
The technical documentation is already available, but if you are unable to solve your problem or you found a bug you can always contact us and ask for help!
Public release of cq-spa-component-mapping
Initial public release of cq-spa-component-mapping, which provides:
MapTo
helper to map JS components with AEM resource typesComponentMapping
singleton to interact with the existing mappingsCopyright 2014 - 2017 © taobao.org |