Closed kingkarki closed 8 years ago
I m using ionic framework. Can i use it like ga_storage._trackPageview('/index', 'optional title'); or i have to use it like $window.ga_storage._trackPageview('/index', 'optional title');
Both will work. $window is just a reference to the window object
$window
If you want to realy use it "the angular way" you should do a small Service or Factory around ga_storage.
I m using ionic framework. Can i use it like ga_storage._trackPageview('/index', 'optional title'); or i have to use it like $window.ga_storage._trackPageview('/index', 'optional title');