1 2 3 4 5 6 7 8 9 10 11 12 13 | /* Angular will complain that it cannot find test2 function test2($scope) { alert('I ran!'); $scope.name = {text:'blah, blah'}; } */ var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.first = 'jackson'; $scope.last = 'pollock'; }); |