revert: docs($interpolate): add example for the provider

This reverts commit 1a01e80b9c.

This example is bogus, breaks docs.angularjs.org and karma e2e tests
This commit is contained in:
Igor Minar 2013-08-14 14:08:18 -07:00
parent 7636670a77
commit dfd95f0115

View file

@ -8,38 +8,6 @@
* @description
*
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
*
* @example
<doc:example>
<doc:source>
<script>
var myApp = angular.module('App', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('//');
$interpolateProvider.endSymbol('//');
});
function Controller($scope) {
$scope.label = "Interpolation Provider Sample";
}
</script>
<div ng-app="App" ng-controller="Controller">
//label//
</div>
</doc:source>
<doc:scenario>
describe('provider', function() {
beforeEach(module(function($interpolateProvider) {
$interpolateProvider.startSymbol('//');
$interpolateProvider.endSymbol('//');
}));
it('should not get confused with same markers', inject(function($interpolate) {
expect($interpolate('///').parts).toEqual(['///']);
expect($interpolate('////')()).toEqual('');
expect($interpolate('//1//')()).toEqual('1');
}));
});
</doc:scenario>
</doc:example>
*/
function $InterpolateProvider() {
var startSymbol = '{{';