angularjs - Windows 8 and href -


I am trying to convert an AngularJS web app into a multi device app.

On the web application I used ngRoute to basically do something like

  app.config (['$ routeProvider', function ($ migration provider) {$ routeProvider. ('/ Home', {administrator: 'homecount', template url: '/scripts/app/modules/home/home.html'})  

}];

< P> and index html in the page below as a simple href and ngView:

   ng-href = "# / Home"> Go home & lt; / a & Gt; & lt; div data-ng-view = "" & gt; & lt; / div>  

If I run an app in the rapel for Android, then go Works like, but does not work at all on Windows or Windows ARM! It seems that it does not explain # on the link.

How can I solve it?

Thank you!

I thought this and thanks for that too!

Actually the problem is that when the app is published as a Win app, Href is provided with a prefix such as 'unsafe: MS-APX'.

{$ CompileProvider.aHrefSanitizationWhitelist (/ ^ \ s * (https | FTP | Mail | | | GThps | | MS-APX | x-wmapp0]: /);}]) ;;

Also, keep in mind that when you configure a template url on the $ route provider , you can not start your URL with "/" if you want it Applications should work wind H is also okay (I used to set my template url to "/ app / views / myView.html" such as to ensure that the path starts with the root, But this approach looks

Thanks!


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -