Skip to content

Instantly share code, notes, and snippets.

View heobay's full-sized avatar

Kiet Tran heobay

  • HBSolution
  • VietNam
View GitHub Profile
.flexslider{
background:none;
border:none;
box-shadow:none;
margin:0px;
}
@heobay
heobay / ngEnter.js
Created January 8, 2014 02:20 — forked from EpokK/ngEnter.js
app.directive('ngEnter', function() {
return function(scope, element, attrs) {
element.bind("keydown keypress", function(event) {
if(event.which === 13) {
scope.$apply(function(){
scope.$eval(attrs.onEnter);
});
event.preventDefault();
}