text: var breakpointApp=angular.module("breakpointApp",[]);breakpointApp.directive("breakpoint",["$window","$rootScope",function(a,o){return{restrict:"A",link:function(i,r,n){i.breakpoint={class:"",windowSize:a.innerWidth};var t=i.$eval(n.breakpoint);angular.element(a).bind("resize",function(){i.breakpoint.windowSize=a.innerWidth,i.$$phase||i.$apply()}),i.$watch("breakpoint.windowSize",function(n,a){!function(n){var a=t[Object.keys(t)[0]];for(var e in t)e<n&&(a=t[e]),r.removeClass(t[e]);r.addClass(a),i.breakpoint.class=a,i.$$phase||i.$apply()}(n)}),i.$watch("breakpoint.class",function(n,a){var e;n!=a&&(e=a,o.$broadcast("breakpointChange",i.breakpoint,e))})}}}]);