Closed CarbonFactory closed 8 years ago
First time this has been mentioned - can you supply a 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
Why couldn't you just pass in templateUrl
for this? That plunkr has way too much going on.
you mean to pass the full path of the file ? the way I'm doing as of now?
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