mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
- make css section optional - make returns section optional - change format of the parameters section - properly format the Returns section
45 lines
856 B
Text
45 lines
856 B
Text
<h1>{{name}}</h1>
|
|
|
|
{{#deprecated}}
|
|
<fieldset class="deprecated">
|
|
<legend>Deprecated API</legend>
|
|
{{deprecated}}
|
|
</fieldset>
|
|
{{/deprecated}}
|
|
|
|
<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>
|
|
|
|
{{#returns}}
|
|
<h3>Returns</h3>
|
|
<tt>{{{{type}}}}</tt> {{{description}}}
|
|
{{/returns}}
|
|
|
|
{{#css}}
|
|
<h3>CSS</h3>
|
|
{{{css}}}
|
|
{{/css}}
|
|
|
|
{{#example}}
|
|
<h2>Example</h2>
|
|
{{{exampleDescription}}}
|
|
<doc:example>
|
|
<doc:source>
|
|
{{/example}}
|
|
{{{example}}}
|
|
{{#example}}
|
|
</doc:source>
|
|
<doc:scenario>{{{scenario}}}</doc:scenario>
|
|
</doc:example>
|
|
{{/example}}
|