, , angular , JSLint? , angular, , JavaScript-, JSLint .
JSLint , . angular include, JSLint , , JavaScript .
, JSLint :
var myApp = angular.module('myApp', []);
global, JSLint , .
var myApp = angular.module('myApp', []);
.
, JSLinted JavaScript. . , if jslint white:true , . .
var myApp = angular.module('myApp', []);
myApp.controller('Controller2', function ($scope) {
"use strict";
$scope.names = [];
var data = ['Dean', 'Andy', 'Dan', 'Wizek', 'Pete', 'Pawel', 'Chris', 'Misko'];
$scope.add = function() {
if (data.length)
{
$scope.names.push(data.pop());
}
};
$scope.reset = function(index) {
data.push($scope.names.splice(index, 1)[0]);
};
});