ng-include was breaking things, so we create a new ng-if to match based on media queries
This commit is contained in:
parent
9a402ab0b1
commit
de8bd4a92e
3 changed files with 20 additions and 7 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue