Hello everyone,
i am trying to wrap my head around this issue - i've been developing a mid
sized application using the following:
- Back-End: .Net Web Api
-Front End: .Net MVC 5
Currently i've switched from .Net Routing tu using the ngRoute module.
Everything has been going fine and i've been able to utilize Routing with
Authentication and Authorization checks and everything.
The application uses some quite big ng-repeat tables and i have decided to
move to Angular 1.3 to work with one way data binding to increase the
Performance of the application.
The migration went very smooth, except for one small issue.
Whenever the System is Routing to another view, i'm getting an "Unknown
error" from angular.js file. More specifically, the execption occurs in the
function
function cacheState() {
// This should be the only place in $browser where `history.state` is read.
cachedState = window.history.state;
cachedState = isUndefined(cachedState) ? null : cachedState;
// Prevent callbacks fo fire twice if both hashchange & popstate were fired.
if (equals(cachedState, lastCachedState)) {
cachedState = lastCachedState;
}
lastCachedState = cachedState;
}
The error seems to happen earlier though.The state object is popilated with
an "Unknown Error"
Error: Unkown Error.
at cacheState (http://localhost:49676/Scripts/angular.js:5061:5)
at cacheStateAndFireUrlChange (
http://localhost:49676/Scripts/angular.js:5053:5)
at eventHandler (http://localhost:49676/Scripts/angular.js:3013:9)
Any idea what this can be? I am getting this in Chrome, Firefox and IE. The
routing still works and the view serves the Content, but i don't want every
click to throw an error in the console, and i am quite sure this is
something that will bite me along the way if i can't get this solved now.
Might this be a Problem of combining MVC5 with Angular 1.3? Any help would
be appreciated greatly.
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.