mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
- syntax highlighting - tabless design - rename widget to doc:example - rename widget files (wiki_widget.* -> doc_widget.*) - example section is now optional
33 lines
658 B
Text
33 lines
658 B
Text
<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}}}
|
|
|
|
{{#example}}
|
|
<h2>Example</h2>
|
|
{{{exampleDescription}}}
|
|
<doc:example>
|
|
<doc:source>
|
|
{{/example}}
|
|
{{{example}}}
|
|
{{#example}}
|
|
</doc:source>
|
|
<doc:scenario>{{{scenario}}}</doc:scenario>
|
|
</doc:example>
|
|
{{/example}}
|