Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • It sounded interesting untill u mention showing and hiding different values, which means i can't really hold two different templates for each mode. I don't want one manipulated template, it makes things messy. Commented Jan 26, 2016 at 21:13
  • I updated it to reflect using different templates based on the $stateParams Commented Jan 26, 2016 at 21:17
  • wow, first i didn't know u can handle the template url dynamiclly! But i'll challenge this idea, i am guessing i could have userService (as an example) instead of having $stateParams right? Commented Jan 26, 2016 at 21:24
  • I'm guessing you could, I'm not entirely sure though as I haven't needed this functionality in my own app. Commented Jan 26, 2016 at 21:32
  • I just dont want to have a different url other than "myapp/profile", trying to figure the meaning of the data added to url as u showed. Commented Jan 26, 2016 at 21:34