Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sidenavDirective = angular.module('sidenavDirective', [])
- .directive('resize', function ($window) {
- return{
- scope:true,
- priority: 0,
- link: function (scope, elem, attrs) {
- var winHeight = $window.innerHeight;
- scope.$watch(function(){
- return $window.innerHeight;
- },
- function(newValue, oldValue) {
- elem.css('height', winHeight + 'px');
- });
- }}
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement