aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordandoyon2011-08-10 20:53:56 -0700
committerIgor Minar2011-08-19 01:16:56 -0700
commit53a4580d956248cfef84c4d11350a54d27211cf7 (patch)
tree9645a2d8e60a3909be657bfe05b09015ea51e96a /src
parent4c8eaa1eb05ba98d30ff83f4420d6fcd69045d99 (diff)
downloadangular.js-53a4580d956248cfef84c4d11350a54d27211cf7.tar.bz2
doc(sample): Add javascript sandbox integration (jsFiddle)
Change doc_widget.js to: - render "edit in jsfiddle" button next to all examples - make opt out certain examples by adding jsfiddle="false" attribute to doc:source element
Diffstat (limited to 'src')
-rw-r--r--src/service/resource.js2
-rw-r--r--src/service/route.js2
-rw-r--r--src/service/xhr.js2
-rw-r--r--src/widgets.js4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/service/resource.js b/src/service/resource.js
index c11067b1..f6e0be18 100644
--- a/src/service/resource.js
+++ b/src/service/resource.js
@@ -157,7 +157,7 @@
Let's look at what a buzz client created with the `$resource` service looks like:
<doc:example>
- <doc:source>
+ <doc:source jsfiddle="false">
<script>
function BuzzController($resource) {
this.Activity = $resource(
diff --git a/src/service/route.js b/src/service/route.js
index 9534968a..3d555e4d 100644
--- a/src/service/route.js
+++ b/src/service/route.js
@@ -22,7 +22,7 @@
Try changing the URL in the input box to see changes.
<doc:example>
- <doc:source>
+ <doc:source jsfiddle="false">
<script>
function MainCntl($route, $location) {
this.$route = $route;
diff --git a/src/service/xhr.js b/src/service/xhr.js
index 224bc57a..70fcd067 100644
--- a/src/service/xhr.js
+++ b/src/service/xhr.js
@@ -109,7 +109,7 @@
*
* @example
<doc:example>
- <doc:source>
+ <doc:source jsfiddle="false">
<script>
function FetchCntl($xhr) {
var self = this;
diff --git a/src/widgets.js b/src/widgets.js
index 8a97f61b..4a2820c9 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -955,7 +955,7 @@ angularWidget('select', function(element){
*
* @example
<doc:example>
- <doc:source>
+ <doc:source jsfiddle="false">
<select name="url">
<option value="examples/ng-include/template1.html">template1.html</option>
<option value="examples/ng-include/template2.html">template2.html</option>
@@ -1389,7 +1389,7 @@ angularWidget("@ng:non-bindable", noop);
*
* @example
<doc:example>
- <doc:source>
+ <doc:source jsfiddle="false">
<script>
function MyCtrl($route) {
$route.when('/overview',