www.webdeveloper.com
Results 1 to 1 of 1

Thread: how do I get everything to the left of a character using angular?

  1. #1
    Join Date
    Apr 2006
    Posts
    120

    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 11:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles