Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore(demo): fix plunker link
Browse files Browse the repository at this point in the history
Closes #563
  • Loading branch information
pkozlowski-opensource committed Jun 27, 2013
1 parent ee74170 commit b867538
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion misc/demo/assets/plunker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ angular.module('plunker', [])
.directive('plunkerContent', function () {
return {
link:function (scope, element, attrs) {
scope.$parent.content[attrs.plunkerContent] = element.text();
scope.content[attrs.plunkerContent] = element.text().trim();
}
}
});
14 changes: 9 additions & 5 deletions misc/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/<%= ngversion %>/angular.min.js"></script>
<script src="ui-bootstrap-tpls-<%= pkg.version%>.min.js"></script>
<script src="ui-bootstrap-tpls-<%= pkg.version%>.js"></script>
<script src="assets/select2.js"></script>
<script src="assets/ui-select2.js"></script>
<script src="assets/plunker.js"></script>
Expand Down Expand Up @@ -182,11 +182,15 @@ <h1><%= module.displayName %><small>
<button class="btn btn-info" id="plunk-btn" ng-click="edit('<%= ngversion%>', '<%= bsversion %>', '<%= pkg.version%>', '<%= module.name %>')"><i class="icon-edit icon-white"></i> Edit in plunker</button>
</div>
<tabset>
<tab heading="Markup" plunker-content="markup">
<pre ng-non-bindable><code data-language="html"><%- module.docs.html %></code></pre>
<tab heading="Markup">
<div plunker-content="markup">
<pre ng-non-bindable><code data-language="html"><%- module.docs.html %></code></pre>
</div>
</tab>
<tab heading="JavaScript" plunker-content="javascript">
<pre ng-non-bindable><code data-language="javascript"><%- module.docs.js %></code></pre>
<tab heading="JavaScript">
<div plunker-content="javascript">
<pre ng-non-bindable><code data-language="javascript"><%- module.docs.js %></code></pre>
</div>
</tab>
</tabset>
</div>
Expand Down

0 comments on commit b867538

Please sign in to comment.