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
'use strict'; | |
angular.module('m.utc') | |
.directive('utcParser', function () { | |
function link(scope, element, attrs, ngModel) { | |
var parser = function (val) { | |
val = moment.utc(val).format(); | |
return val; | |
}; |
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
// credits to: http://jsfiddle.net/gikoo/eLv95st4 | |
'use strict'; | |
angular.module('m.isolate.form') | |
.directive('isolateForm', [function () { | |
return { | |
restrict: 'A', | |
require: '?form', | |
link: function (scope, elm, attrs, ctrl) { |