Guest User

Untitled

a guest
Sep 30th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <html ng-viewport="deviceWidth">
  2. <button ng-click="changeDeviceWidth()">
  3. </html>
  4.  
  5. // initial
  6. $scope.deviceWidth = getDeviceWidthFunction();
  7. $scope.changeDeviceWidth = function (deviceWidth) {
  8. $scope.deviceWidth = deviceWidth;
  9. }
Add Comment
Please, Sign In to add comment