$location and $locationProvider

I'm trying to create a variable link in an angular app. If it is mobile, it will open the href in a new tab. If it is desktop, it will open in a popup. As such, I am trying to invoke the $location variable provided by Angular, but cannot figure out to invoke it. Where/how do I initialize the use of this variable?

Category:angularjs Views:0 Time:2018-02-09

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.130 (s). 11 q(s)