Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
docs(dropdown): properly document both directive and service usage (f…
Browse files Browse the repository at this point in the history
…ixes #884)
  • Loading branch information
mgcrea committed Oct 25, 2014
1 parent 4a65160 commit c9372a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropdown/docs/dropdown.demo.html
Expand Up @@ -20,7 +20,7 @@ <h3>Live demo <a class="small edit-plunkr" data-module-name="mgcrea.ngStrapDocs"
<pre class="bs-example-scope">$scope.dropdown = {{dropdown | json}};</pre>
<div class="bs-example" style="padding-bottom: 24px;" append-source>

<!-- Button to trigger a default dropdown with a scope as an object [{title:'', content:'', etc.}] -->
<!-- Button to trigger a default dropdown from an array ($scope.dropdown) [{text:'foo', href:'', click:''}, ...] -->
<button type="button" class="btn btn-lg btn-primary" data-animation="am-flip-x" bs-dropdown="dropdown">Click to toggle dropdown
<br />
<small>(using an object)</small>
Expand All @@ -36,7 +36,7 @@ <h4>The module exposes a <code>$dropdown</code>service</h4>
<div class="highlight">
<pre>
<code class="javascript" highlight-block>
var myDropdown = $dropdown(element, {title: 'My Title', content: 'My Content'});
var myDropdown = $dropdown(element, {scope: {content: [{text:'foo', href:'', click:''}, ...]});
</code>
</pre>
</div>
Expand Down

0 comments on commit c9372a5

Please sign in to comment.