Ionic template loading


#1

hi,

We have an ionic V1 app with angular 1.5.3. It’s working perfectly. The way the ionic states has been defined is: .state(‘app’, {
url: ‘/app’,
controller: ‘xyzController’,
abstract: true,
templateUrl: ‘xyz’,
cache: true
})

No properURl for template as it resides in different folder. templates are loading in our html as script tag=“text/ng-template” id=“xyz” and it working fine.

When i am trying to write unit test case for it using karma-jasmine, i am trying to load html file by specifying it in files collection. It loads html but it also tries to load xyz.html as localhost:5964/xyz as it was specified in state. i tried using ng-html2js processor to include html as a script but failed. Any help is appreciated.