From c048f0d8e8385e96e9fff0b4ff733cecfa726d93 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 8 Nov 2010 20:34:18 -0800 Subject: Added formatter documentation. --- docs/formatter.template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/formatter.template (limited to 'docs/formatter.template') diff --git a/docs/formatter.template b/docs/formatter.template new file mode 100644 index 00000000..19611ca1 --- /dev/null +++ b/docs/formatter.template @@ -0,0 +1,24 @@ +

{{name}}

+

Description

+{{{description}}} + +

Usage

+

In HTML Template Binding

+ + <input type="text" ng:format="{{shortName}}"> + +

In JavaScript

+ +var userInputString = angular.formatter.{{shortName}}.format(modelValue);
+var modelValue = angular.formatter.{{shortName}}.parse(userInputString); +
+ +

Returns

+{{{returns}}} + +

CSS

+{{{css}}} + + +{{{example}}} + \ No newline at end of file -- cgit v1.2.3