Open New Browser Tab using AngularJS

In this article, I will show you, How to open new browser tab using ng-click event. This is the same thing in JQuery. In this example, first of all access division tag using angular,module function. In this we have ng-app as parameter. Lets see the example.

<!DOCTYPE html>
   <script type="text/javascript" src=""></script>
   <script type="text/javascript">
       var app = angular.module('FirstApp', [])
       app.controller('ControllerPage', function ($scope, $window) {
           $scope.NewTab = function () {
    <div ng-app="FirstApp" ng-controller="ControllerPage">
        <input type="button" value="New Tab" ng-click="NewTab()" />


Popular posts from this blog

difference between structure and union in C Language

Difference between Linear search and Binary Search in c language

Difference between static and dynamic websites