20 lines
492 B
JavaScript
20 lines
492 B
JavaScript
import ngModule from '../../module';
|
|
import ModuleCard from 'salix/components/module-card';
|
|
|
|
class Controller extends ModuleCard {
|
|
reload() {
|
|
const filter = {
|
|
include: [
|
|
{relation: 'supplier'}
|
|
]
|
|
};
|
|
this.$http.get(`Roadmaps/${this.$params.id}`, {filter})
|
|
.then(res => this.roadmap = res.data);
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnRoadmapCard', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|