Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html ng-viewport="deviceWidth">
- <button ng-click="changeDeviceWidth()">
- </html>
- // initial
- $scope.deviceWidth = getDeviceWidthFunction();
- $scope.changeDeviceWidth = function (deviceWidth) {
- $scope.deviceWidth = deviceWidth;
- }
Add Comment
Please, Sign In to add comment