diff options
Diffstat (limited to 'docs/formatter.template')
| -rw-r--r-- | docs/formatter.template | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ +<h1><tt>{{name}}</tt></h1> +<h2>Description</h2> +{{{description}}} + +<h2>Usage</h2> +<h3>In HTML Template Binding</h3> +<tt> + <input type="text" ng:format="{{shortName}}"> +</tt> +<h3>In JavaScript</h3> +<tt ng:non-bindable> +var userInputString = angular.formatter.{{shortName}}.format(modelValue);<br/> +var modelValue = angular.formatter.{{shortName}}.parse(userInputString); +</tt> + +<h3>Returns</h3> +{{{returns}}} + +<h3>CSS</h3> +{{{css}}} + +<WIKI:SOURCE style="display:block;"> +{{{example}}} +</WIKI:SOURCE>
\ No newline at end of file |
