ng-include was breaking things, so we create a new ng-if to match based on media queries

This commit is contained in:
Joseph Schorr 2014-08-15 21:09:02 -04:00
parent 9a402ab0b1
commit de8bd4a92e
3 changed files with 20 additions and 7 deletions

View file

@ -1811,6 +1811,19 @@ quayApp.directive('quayShow', function($animate, Features, Config) {
});
quayApp.directive('ngIfMedia', function ($animate) {
return {
transclude: 'element',
priority: 600,
terminal: true,
restrict: 'A',
link: buildConditionalLinker($animate, 'ngIfMedia', function(value) {
return window.matchMedia(value).matches;
})
};
});
quayApp.directive('quaySection', function($animate, $location, $rootScope) {
return {
priority: 590,