Angular 学习笔记——$interpolateProvide

<!DOCTYPE HTML>
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script src="angular.min.js"></script>
<script>
    var m1 = angular.module('myApp',[]);
    m1.config(['$interpolateProvider',function($interpdateProvider){
        $interpdateProvider.startSymbol('@@');
        $interpdateProvider.endSymbol('@@');
    }]);
    m1.controller('may',['$scope',function($scope){
        $scope.howtime = 'hellooooo'
    }])
</script>
</head>

<body ng-controller='may'>
    
    <p>@@howtime@@</p>
</body>
</html>

 

posted @ 2015-12-07 23:19  mayufo  阅读(195)  评论(0编辑  收藏  举报