angularjs - default export is not declared in imported module -


i using es6 in intellij idea. below piece of code.

import controller './tpminfo.ctrl.js' import template './tpminfo.tpl.html' //default export not declared in imported module  export default angular.module('tmpapp', [])     .component('tpminfo', {         template: template,         controller: controller,         bindings: {             ags: '='         }     }) .name; 

the template html normal html, intellij idea throws warning "default export not declared in imported module". there way make warning disappear? thanks.

try this:

import * tpl './tpminfo.tpl.html' 

and use this:

template: tpl.template, 

let me know if works you.


Comments