Hi Experts,

I am trying to show a pop up window once i click on a button.But I am 
getting nothing.

Here is what i Itried 

<script type="text/javascript">
       var app = angular.module('MyApp', [])
       app.controller('MyController', function ($scope, $window) {
           $scope.OpenPopupWindow = function () {
               $window.open("http://www.aspsnippets.com/";, "popup", 
"width=300,height=200,left=10,top=150");
           }
       });
</script>
    <div ng-app="MyApp" ng-controller="MyController">
        <input type="button" value="Open Popup Window" 
ng-click="OpenPopupWindow()" />
    </div>

I am getting nothing

Can anyone please help me with this.

Thanks,
Karthik

-- 
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