mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(guide/understanding-controllers): fix typo in example
Broken - $scope.spicy = 'very'; Works - $scope.spice = 'very'; Closes #4752
This commit is contained in:
parent
5b1c972723
commit
159a63f538
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ string "very". Depending on which button is clicked, the `spice` model is set to
|
|||
var myApp = angular.module('spicyApp1', []);
|
||||
|
||||
myApp.controller('SpicyCtrl', ['$scope', function($scope){
|
||||
$scope.spicy = 'very';
|
||||
$scope.spice = 'very';
|
||||
|
||||
$scope.chiliSpicy = function() {
|
||||
$scope.spice = 'chili';
|
||||
|
|
|
|||
Loading…
Reference in a new issue