Código HTML:
Ver original
Código Javascript:
Ver original
var app = angular.module('miApp', []) app.controller('miControlador', ['$scope', function ($scope) { $scope.expense = { description: 'food', amount: 10 }; $scope.phrase = 'the sky is blue'; $scope.increaseAmount = function() { $scope.expense.amount ++; } }]);