I stumbled upon a code which used $stateParams directly in an angular view. As the view didn't have any forms and just needed to build a links according to the parameter passed in stateParams it does seemed ok to use it in view. The code is as below
In above I am just creating an anchor tag on the basis of the email passed as the query. Is it ok to directly use stateParams there ? Or should I define a variable on $scope and assign the parameter to that variable and then use the scope variable instead ? It doesn't seem worthwhile.