|
1
2
3
4
|
var myApp = angular.module(‘myApp‘, []);myApp.controller(‘MyController‘,[‘$scope‘, ‘$parse‘, function($scope, $parse) { $scope.today = new Date(); }]); |
原文:http://www.cnblogs.com/zhutty/p/4997469.html