micro refactor and deletion of unused file.
This commit is contained in:
parent
3d52031dc2
commit
b5d90dfbc6
|
@ -2,6 +2,8 @@ import {module} from '../module';
|
|||
|
||||
/**
|
||||
* Sets the focus and selects the text on the input.
|
||||
*
|
||||
* @return {Object} The directive
|
||||
*/
|
||||
export function directive() {
|
||||
return {
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
import {module} from '../module';
|
||||
|
||||
directive.$inject = ['$compile'];
|
||||
function directive($compile) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
priority: 9999,
|
||||
link: function(scope, element, attrs) {
|
||||
element.removeAttr('vn-repeat');
|
||||
element.attr('ng-repeat', attrs.vnRepeat);
|
||||
$compile(element)(scope);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.directive('vnRepeat', directive);
|
Loading…
Reference in New Issue