mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-19 22:31:00 +00:00
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:
parent
7636670a77
commit
dfd95f0115
1 changed files with 0 additions and 32 deletions
|
|
@ -8,38 +8,6 @@
|
||||||
* @description
|
* @description
|
||||||
*
|
*
|
||||||
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
|
* 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() {
|
function $InterpolateProvider() {
|
||||||
var startSymbol = '{{';
|
var startSymbol = '{{';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue