angular ui router - Directly opening url with stateparam not working in angularjs -
i have url
http://localhost:8000/articles/2345 when clicked within angular, works fine. url's have linked other websites also. error
uncaught syntaxerror: unexpected token <   i using ui-router below
.state('kbca', {       parent : 'root',       url: "/articles/:articleid",       templateurl: "views/abc/abc.html,       controller: "abcctrl",       data : {           authorizedroles : [roles.public]       }     })   and config like
.config(function($locationprovider){     $locationprovider.html5mode(true).hashprefix('!'); });   and have index.html in have made base
<div id="wrap">      <div ui-view></div> </div> <!-- end wrap --> <base href="/">   i tried lots of options on web. nothing seems working me.
here server conf
server {     listen 8000;     root d:/xampp/htdocs/web/myweb/app;     index index.html index.htm;     server_name localhost;     location / {        try_files $uri  $uri/ /index.html;      }     location /mysvcs {             proxy_pass      http://localhost:8080/mymvc;             proxy_set_header host localhost;     }      location /mymvc {             proxy_pass      http://localhost:8080/mymvc;             proxy_set_header host localhost;     }  }       
 
  
Comments
Post a Comment