:smiley_cat: Mango Page Manager Plugin

Getting Started
requires a node version >= 6 and an npm version >= 3.x.x
we do provide a help command to display all possible arguments
npm i @axelspringer/mango-api @axelspringer/mango-plugin-pagemanager
Installation
Try to install this package before rendering.
npm i @axelspringer/mango-api @axelspringer/mango-plugin-pagemanager
In you app, use the plugin and configure it. Use an extra file pagemanager.ts for it.
import Vue from 'vue'
import PageManager from '@axelspringer/mango-plugin-pagemanager'
import { SelectedArticles } from '../components/selectedArticles'
Vue.use(PageManager)
export default new PageManager({
blocks: [
{
pageBlock: 'selected_articles',
component: SelectedArticles
}
]
})
Then install it in your vue app options.
import Vue from 'vue'
import pagemanager
export default function () {
const app = new Vue({
pagemanager,
render: (h) => h(App)
})
return { app }
}
Usage in Components
There are some components available with in the plugin.
Renderer
To use the Page Manager Render <pagemanager-render> you have to provide data to the blocks property.
import Vue from 'vue'
import Component from 'vue-class-component'
@Component
export class Demo extends Vue {
public render(h) {
return (
<div>
<pagemanager-renderer blocks={example} />
</div>
)
}
}
License
MIT