17 lines
388 B
JavaScript
17 lines
388 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
onSubmit() {
|
|
this.$.watcher.check();
|
|
this.$.model.save().then(() =>
|
|
this.$.watcher.notifySaved()
|
|
);
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnItemNiche', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|