src/ng/directive/ngRef.js
Function ngRefDirective
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ngRefDirective = ['$parse', function($parse) {
return {
priority: -1, // Needed for compatibility with element transclusion on the same element
restrict: 'A',
compile: function(tElement, tAttrs) {
Function compile
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(tElement, tAttrs) {
// Get the expected controller name, converts <data-some-thing> into "someThing"
var controllerName = directiveNormalize(nodeName_(tElement));
// Get the expression for value binding