Exercise
Correct!
var app = angular.module('app', []);
// code_here
app.controller('MyController', function (code_here) {
$scope.movie = code_here;
});
var app = angular.module('app', []); app.value('MOVIE_TITLE', 'The Matrix'); app.controller('MyController', function (MOVIE_TITLE) { $scope.movie = MOVIE_TITLE; });
assert(line1 == l1); assert(line3 == l3); assert(line4 == l4);
var l1 = "app.value('MOVIE_TITLE', 'The Matrix');" l1 = l1.toLowerCase().replace(/'/g,'').replace(/ /g, ''); var l3 = "app.controller('MyController', function (MOVIE_TITLE) {" l3 = l3.toLowerCase().replace(/'/g,'').replace(/ /g, ''); var l4 = "$scope.movie = MOVIE_TITLE;" l4 = l4.toLowerCase().replace(/'/g,'').replace(/ /g, '');