I have a json String coming in which looks like:
"Action" : "0876"
I am getting this using the expression
{{submenu1.Action}}
What I want can be summarised as :
- Step 1: Parse and get the final element "6" from "0876" into a variable substr
- Step 2: Casting/converting this substr into a number
- Step 3: Use this as a pointer like Topmenu.number
I am looking for a solution specific to AngularJS. Any help is appreciated.