AngularJS
Javascript
code posted
by
armadillo
created at 14 May 05:59
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 |
var myApp = angular.module('myApp', []); myApp.controller('MainCtrl', ['$scope', function($scope){ $scope.text = "Hello, Angular fanatic"; }]); myApp.controller('UserCtrl', ['$scope', function($scope){ $scope.user = []; $scope.user.details = { 'username': 'Todd Motto', 'id': '123123' } }]); |
339 Bytes in 2 ms with coderay