how do I get everything to the left of a character using angular?
I need to return everything left of a "/" in a templateURL string in an angular app.js file...
For example, I need to do this:
templateURL = "directoryName/pageName.html" (this is part of a $routeProvider statement)
I need to return "directoryName"
What is the best/easiest way to do this? Thanks in advance...
Last edited by stevemtno; 05-28-2014 at 12:36 PM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)