mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
41 lines
991 B
Text
41 lines
991 B
Text
<h1>{{name}}</h1>
|
|
|
|
<h2>Description</h2>
|
|
{{{description}}}
|
|
|
|
<h2>Usage</h2>
|
|
<h3>In HTML Template Binding</h3>
|
|
<tt>
|
|
<input type="text" ng:validate="{{shortName}}{{#paramRest}}{{^default}}:{{name}}{{/default}}{{#default}}<i>[:{{name}}]</i>{{/default}}{{/paramRest}}"/>
|
|
</tt>
|
|
|
|
<h3>In JavaScript</h3>
|
|
<tt ng:non-bindable>
|
|
angular.validator.{{shortName}}({{paramFirst.name}}{{#paramRest}}{{^default}}, {{name}}{{/default}}{{#default}}<i>[, {{name}}]</i>{{/default}}{{/paramRest}} );
|
|
</tt>
|
|
|
|
<h3>Parameters</h3>
|
|
<ul>
|
|
{{#param}}
|
|
<li><tt>{{name}}:{{#type}}{{type}}{{/type}}{{^type}}:*{{/type}}{{#default}}={{default}}{{/default}}</tt>: {{{description}}}</li>
|
|
{{/param}}
|
|
</ul>
|
|
{{{paramDescription}}}
|
|
|
|
<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}}
|
|
|
|
<script>SyntaxHighlighter.highlight();</script>
|