Expand my Community achievements bar.

AEMaaCS- selector accessed in JS

Avatar

Level 10

All,

is there a way other than splitting url that one can access url in client library js alone ? I could do via models but want script to obtain it vs backend model 
eg http://localhost:4502/text/test2.abc.html

since I don’t believe I can get selectors directly within client library js passing using below option 

 I get the selector in htl and add a script in htl itself setting it to a variable, hoping I can get it in js 

or 

set it in a var id within data-sly-use 

 

0 Replies