Angular: Window Popup
http://angularjs.org/
by Nitish Kumar
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular.min.js"></script>
<div ng-controller="MyCtrl">
<div ng-click="shareStory('www.google.com', 300, 600)">TEST</div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl($scope, $window) {
$scope.shareStory = function(url, height, width) { $window.open(url, "", "height=" + String(height) + ", width=" + String(width) + ", top=100, left=100");
}
}