Nivas Dhina Nivas Dhina - 9 months ago 33
Javascript Question

How to split the strings in angular js

I wanted to split a string and get the string in two parts.

for example:

i wish to split the string in the above url and store the string that is after the ? to a variable. How can i do that.

var str = "";
var res = str.split("?");
var value = res.slice(-1).pop(); // it will give 23457cedlske234cd