I want to use State and I have this on my .js file
.state('/Files', {
url: "/Files",
templateUrl: '/App/scripts/files.html'
})
.state('/FilePreview', {
url: '/Files/:fileName/:owner'
// templateUrl: '/App/scripts/files.html',
})
And in view I have this
<td data-th="Genre"><a ui-sref="FilePreview({fileName: file.name, owner:
file.id })" ui-sref-active="active" >{{file.name}}</a></td>
And I am getting this error Error: Could not resolve 'FilePreview' from
state '/Files'
at Object.transitionTo (angular.js:13311)
at Object.go (angular.js:13239)
at angular.js:14352
at angular.js:154
at e (angular.js:45)
at angular.js:48
Please I beg you to help me understand big thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.