This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +0
-32
lines changed
1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 8
8
* @description
9
9
*
10
10
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
11
- *
12
- * @example
13
- <doc:example>
14
- <doc:source>
15
- <script>
16
- var myApp = angular.module('App', [], function($interpolateProvider) {
17
- $interpolateProvider.startSymbol('//');
18
- $interpolateProvider.endSymbol('//');
19
- });
20
- function Controller($scope) {
21
- $scope.label = "Interpolation Provider Sample";
22
- }
23
- </script>
24
- <div ng-app="App" ng-controller="Controller">
25
- //label//
26
- </div>
27
- </doc:source>
28
- <doc:scenario>
29
- describe('provider', function() {
30
- beforeEach(module(function($interpolateProvider) {
31
- $interpolateProvider.startSymbol('//');
32
- $interpolateProvider.endSymbol('//');
33
- }));
34
-
35
- it('should not get confused with same markers', inject(function($interpolate) {
36
- expect($interpolate('///').parts).toEqual(['///']);
37
- expect($interpolate('////')()).toEqual('');
38
- expect($interpolate('//1//')()).toEqual('1');
39
- }));
40
- });
41
- </doc:scenario>
42
- </doc:example>
43
11
*/
44
12
function $InterpolateProvider ( ) {
45
13
var startSymbol = '{{' ;
You can’t perform that action at this time.
0 commit comments