unnecesary vnTemplate removed

This commit is contained in:
Gerard 2018-12-12 09:36:45 +01:00
parent a5132e33e5
commit fc59d9a383
1 changed files with 2 additions and 3 deletions

View File

@ -3,9 +3,8 @@ import Input from '../../lib/input';
import './style.scss';
export default class Controller extends Input {
constructor($element, $scope, $attrs, vnTemplate) {
constructor($element, $scope, $attrs) {
super($element, $scope);
vnTemplate.normalizeInputAttrs($attrs);
componentHandler.upgradeElement(this.element.firstChild);
this.mdlElement = this.element.firstChild.MaterialCheckbox;
this.input.addEventListener('change', () => this.onChange());
@ -38,7 +37,7 @@ export default class Controller extends Input {
this.$.$applyAsync();
}
}
Controller.$inject = ['$element', '$scope', '$attrs', 'vnTemplate'];
Controller.$inject = ['$element', '$scope', '$attrs'];
ngModule.component('vnCheck', {
template: require('./check.html'),