add

angular .module('addSkills', []) .controller('addSkillsController', ['$scope', function($scope) { $scope.skills = []; $scope.addSkill = function() { $scope.skills.push({'title': $scope.newSkill, 'done':false}) $scope.newSkill = '' } $scope.deleteSkill = function(index) { $scope.skills.splice(index, 1); } }])

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.