rpocklin / ui-router-tabs

Idiot-proof tab panes with route support using Angular.js + Bootstrap 3 + UI Router
Other
244 stars 57 forks source link

Does not work when template is in templateCache #68

Closed CarbonFactory closed 8 years ago

CarbonFactory commented 8 years ago

If I put the template in a cache.js file, clicking on the tabs does nothing

`

`

The same when referred to in the ui-router's templateUrl with the full path of the html then it works, but not when the templateUrl contains the templateCache's key

rpocklin commented 8 years ago

First time this has been mentioned - can you supply a plunkr?

CarbonFactory commented 8 years ago

Plunkr

.state('admin', { abstract: true, url: '/admin' }) .state('admin.data', { url: '/data', views: { 'index@': { templateUrl: 'templates/adminData.html' } } }) .state('admin.data.grades', { url: '/grades', views: { 'tabs@admin.data': { templateUrl: 'templates/grades.html' } } }) When I load the adminData via templateCache, clicking on the child tabs does not load the child state. But, if I load the adminData by referencing the html file, it works

rpocklin commented 8 years ago

Why couldn't you just pass in templateUrl for this? That plunkr has way too much going on.

CarbonFactory commented 8 years ago

you mean to pass the full path of the file ? the way I'm doing as of now?