/*! angular-flash-pure 09-06-2014 */ (function(){angular.module("angular-flash-pure",[]).factory("flash",function(a){var b,c;return c={notice:[],success:[],warning:[],error:[]},b={notice:"",success:"",warning:"",error:""},a.$on("$locationChangeStart",function(){return b.notice=c.notice.shift()||"",b.success=c.success.shift()||"",b.warning=c.warning.shift()||"",b.error=c.error.shift()||""}),a.$on("event:angularFlash",function(){return b.notice=c.notice.shift()||"",b.success=c.success.shift()||"",b.warning=c.warning.shift()||"",b.error=c.error.shift()||""}),{notice:{setMessage:function(a){return c.notice.push(a)},getMessage:function(){return b.notice}},success:{setMessage:function(a){return c.success.push(a)},getMessage:function(){return b.success}},warning:{setMessage:function(a){return c.warning.push(a)},getMessage:function(){return b.warning}},error:{setMessage:function(a){return c.error.push(a)},getMessage:function(){return b.error}}}}).directive("flashMessages",["flash",function(a){return{restrict:"E",template:["