0

this is my route i want to pass id using route

.state('app.profile', {
    url: '/profile',
    templateUrl: "assets/views/profile.html",
    resolve: loadSequence('profileCtrl'),
})

my html in ng-repeat

<td data-title="'Profile'">

    <nav id="cl-effect-13" class="links cl-effect-13">
         <a ui-sref="app.profile">
           <i class="ti-user"></i>
        </a>
    </nav>

</td>

this is my controller hear i want to get id

$scope.usersdata=function(val){

            alert(val);
        };
yagnik devani
  • 49
  • 1
  • 7
  • could you elaborate question? – Rahul Sharma Feb 13 '18 at 12:32
  • Possible duplicate of [How to get the url parameters using AngularJS](https://stackoverflow.com/questions/11758079/how-to-get-the-url-parameters-using-angularjs) – flx Feb 13 '18 at 12:34
  • check this [https://stackoverflow.com/questions/25647454/how-to-pass-parameters-using-ui-sref-in-ui-router-to-controller]() **How to pass parameters using ui-sref in ui-router to controller** – Shailesh Singh Feb 13 '18 at 12:37

0 Answers0