UNPKG
fruitstand
Version:
latest (0.0.1)
0.0.1
fruit stand
github.com/classmember/fruitstand
classmember/fruitstand
fruitstand
/
examples
/
nodejs-mongodb-angularjs-web-development
/
ch22
/
static
/
js
/
scope_template.js
10 lines
•
268 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
angular.
module
(
'myApp'
, []).
controller
(
'SimpleTemplate'
, function(
$scope
) {
$scope
.valueA =
5
;
$scope
.valueB =
7
;
$scope
.valueC =
12
;
$scope
.addValues =
function
(
v1, v2
)
{
var
v = angular.
$rootScope
;
$scope
.valueC = v1 + v2; }; });