From 9c0639437607a4fcea379bbaf610600d05d8a9b7 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 8 Nov 2011 17:40:52 -0800 Subject: chore(scenario tests): make scenario tests pass again --- docs/content/guide/dev_guide.expressions.ngdoc | 17 ++++++++++-- docs/content/guide/dev_guide.forms.ngdoc | 26 +++++++++++------- .../dev_guide.services.injecting_controllers.ngdoc | 24 ++++++++-------- ..._guide.templates.filters.creating_filters.ngdoc | 32 ++++++++++++---------- 4 files changed, 61 insertions(+), 38 deletions(-) (limited to 'docs/content/guide') diff --git a/docs/content/guide/dev_guide.expressions.ngdoc b/docs/content/guide/dev_guide.expressions.ngdoc index 420a6f98..b9417b38 100644 --- a/docs/content/guide/dev_guide.expressions.ngdoc +++ b/docs/content/guide/dev_guide.expressions.ngdoc @@ -54,15 +54,26 @@ You can try evaluating different expressions here: function Cntl2() { this.exprs = []; this.expr = '3*10|currency'; + this.addExp = function(expr) { + this.exprs.push(expr); + }; + + this.removeExp = function(contact) { + for ( var i = 0, ii = this.exprs.length; i < ii; i++) { + if (contact === this.exprs[i]) { + this.exprs.splice(i, 1); + } + } + }; }
| Name | Phone |
|---|---|
| {{friend.name}} | {{friend.phone}} |