I won’t say much nonsense, I will just post the code to you. The specific code is as follows:
<!DOCTYPE html> <html ng-app="myPro"> <head> <meta charset="UTF-8"> <title>angularJS-Open a new tab</title> <script type="text/javascript" src="js/" ></script> <script type="text/javascript" src="js/jquery-1.11." ></script> </head> <body ng-controller="myProController"> <button ng-click="click_this()">Open a new tab</button> </body> <script> var pro = ("myPro",[]); ("myProController",["$scope","$location",function($scope,$location){ $scope.click_this = function(){ var url = $().split("angularJS_")[0]+'angularJS_newTab.html'; (url,"_blank"); }; }]); </script> </html>
Summarize
The above is the AngularJS implementation code introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!