This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hasClass : function(className, sequenceID) { | |
sequenceID = sequenceID || index.length; | |
var count = hasClass(element, className) ? 1 : 0; | |
for(var i = 0; i <= sequenceID; i++) { | |
var lookup = index[i]; | |
count += lookup[className] ? lookup[className] : 0; | |
} | |
return count > 0; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyAnimation extends LoopedAnimation { | |
const DURATION = 1000; | |
final dom.Element element; | |
final AnimationLoop animationLoop; | |
MyAnimation(this.element, this.animationLoop) { | |
animationLoop.play(this); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value == true | |
? 'a' | |
: 'b'; | |
value == true ? | |
'a' : | |
'b'; | |
value == true ? 'a' : 'b'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body[ng-cloak] { | |
position:relative; | |
} | |
body[ng-cloak]:after { | |
content:""; | |
position:absolute; | |
top:0; | |
left:0; | |
right:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-message="form['email'].errorStates" ng-message-include="tpl" ng-message-multiple="true"> | |
<div ng-message-on="ng-maxlength">{{ $control.elementAt(0).viewValue }} is too long</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-messages-template> | |
<div ng-message-on="abc">123</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iit('should continue the phase', inject(function($rootScope) { | |
$rootScope.$watch('a', function(a) { | |
if (a === 1) throw new minErr('$compile')('fail', '...'); | |
}); | |
$rootScope.a = 0; | |
$rootScope.$digest(); | |
expect(function() { | |
$rootScope.a = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function append(prop, promise) { | |
return function(book) { | |
promise.then(function(data) { | |
book[prop] = data; | |
}) | |
} | |
}; | |
var requests = []; | |
var book = bookQuery(isbnQuery(code)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* ngModule.animation('.my-inline-animation', function() { | |
* return { | |
* animate : function(element, from, to, done) { | |
* //styles | |
* } | |
* } | |
* }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$animate.enter(element, parent, null, { | |
from : { | |
opacity: 0 | |
}, | |
to : { | |
opacity: 1 | |
} | |
}); |
OlderNewer