angular-restmod icon indicating copy to clipboard operation
angular-restmod copied to clipboard

How do I get urlPrefix?

Open gkpo opened this issue 9 years ago • 1 comments

From a random controller. How do I access restmod's urlPrefix setting? Thanks in advance.

gkpo avatar May 05 '16 15:05 gkpo

You can use getProperty('urlPrefix') on any random model like:

Bike.getProperty('urlPrefix'); // It will return the url prefix added previously

utf4 avatar Nov 03 '16 18:11 utf4