src/ng/directive/ngInclude.js
Function ngIncludeDirective
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function($templateRequest, $anchorScroll, $animate) {
return {
restrict: 'ECA',
priority: 400,
terminal: true,
Function compile
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
var srcExp = attr.ngInclude || attr.src,
onloadExp = attr.onload || '',
autoScrollExp = attr.autoscroll;
Function ngIncludeWatchAction
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scope.$watch(srcExp, function ngIncludeWatchAction(src) {
var afterAnimation = function(response) {
if (response !== false && isDefined(autoScrollExp) &&
(!autoScrollExp || scope.$eval(autoScrollExp))) {
$anchorScroll();