I have a code written in native Javascript. I want to rewrite same in angular 
js. Please find required code in below TODO line.

A quick response is highly appreciable.



var navigateOffpage = function navigateOffpage(tab) {

      // TODO: use angular.element instead of document.createElement
     var link = document.createElement("a");   

      link.href = tab.visibleLocation;   

      link.target = "_self";

      // TODO: use angular.element() to create and inject dom elements.
       document.body.appendChild(link);

     link.click();

    };

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to