Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ProLoser committed Jun 14, 2013
1 parent 94bbbf9 commit 8dcd2fa
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions modules/jq/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>How?</h3>
</p>

<p>Use the directive name <code>jq</code> for namespacing inside
<code>ui.config</code>. Then sub-namespace options for each function by the name of that function (exactly as it is passed to
<code>uiJqConfig</code>. Then sub-namespace options for each function by the name of that function (exactly as it is passed to
<code>ui-jq</code>) so that you don't have to pass options every time you call the directive.</p>
<pre class="prettyprint">
&lt;a title=&quot;Easiest. Binding. Ever!&quot; ui-jq=&quot;tooltip&quot;&gt;Hover over me for static Tooltip&lt;/a&gt;
Expand All @@ -54,16 +54,13 @@ <h3>How?</h3>
&lt;input type=&quot;text&quot; ng-model=&quot;tooltip&quot; placeholder=&quot;Tooltip Content&quot;&gt;

&lt;script&gt;
myModule.value('ui.config', {
// The ui-jq directive namespace
jq: {
// The Tooltip namespace
tooltip: {
// Tooltip options. This object will be used as the defaults
placement: 'right'
}
myModule.value('uiJqConfig', {
// The Tooltip namespace
tooltip: {
// Tooltip options. This object will be used as the defaults
placement: 'right'
}
});
&lt;/script&gt;
</pre>
</section>
</section>

0 comments on commit 8dcd2fa

Please sign in to comment.