I've placed a below link in my code角度JS <a href> route back to LogIn
<a href="/#/list/' + data._id + '" class="btn btnprimary1" > LIST </a>
It should routed to below point
.state('index.list', {
url: '/list/:id',
templateUrl: '/list.html',
data: { pageTitle: 'listing', pageFilter: 'off' },
controller: 'listController',
});
Instead of that it routed to the main page /# and from that it checks login and rerouted to my current page
Is it a correct way to place href in angular code to route to a state with specific Id.
男うっ...おかげ –
それは働いていたが、あなたはそれが起こった理由私はよりよく理解提供することができます。.. –
は、解析し、コンパイルします。それは二重{{..}}がありません(そして、それは有効なjs式でもなく、引用符を見てください)。 ng-hrefとui-srefはディレクティブなので異なる。 – hansmaad