Update Angular to 1.2.0 RC2
This commit is contained in:
parent
7416269494
commit
0d3a40980e
184 changed files with 17993 additions and 21133 deletions
|
@ -50,16 +50,16 @@ to write directives.</p>
|
|||
<p>Here is a directive which makes any element draggable. Notice the <code>draggable</code> attribute on the
|
||||
<code><span></code> element.</p>
|
||||
<h3>Source</h2>
|
||||
<div source-edit="drag" source-edit-deps="angular.js script.js" source-edit-html="index.html-179" source-edit-css="" source-edit-js="script.js-178" source-edit-json="" source-edit-unit="" source-edit-scenario=""></div>
|
||||
<div source-edit="drag" source-edit-deps="angular.js script.js" source-edit-html="index.html-180" source-edit-css="" source-edit-js="script.js-179" source-edit-json="" source-edit-unit="" source-edit-scenario=""></div>
|
||||
<div class="tabbable"><div class="tab-pane" title="index.html">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-179" ng-html-wrap="drag angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-179">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-180" ng-html-wrap="drag angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-180">
|
||||
<span draggable>Drag ME</span>
|
||||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="script.js">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-178"></pre>
|
||||
<script type="text/ng-template" id="script.js-178">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-179"></pre>
|
||||
<script type="text/ng-template" id="script.js-179">
|
||||
angular.module('drag', []).
|
||||
directive('draggable', function($document) {
|
||||
return function(scope, element, attr) {
|
||||
|
@ -97,7 +97,7 @@ to write directives.</p>
|
|||
</script>
|
||||
</div>
|
||||
</div><h2>Demo</h3>
|
||||
<div class="well doc-example-live animate-container" ng-embed-app="drag" ng-set-html="index.html-179" ng-eval-javascript="script.js-178"></div>
|
||||
<div class="well doc-example-live animate-container" ng-embed-app="drag" ng-set-html="index.html-180" ng-eval-javascript="script.js-179"></div>
|
||||
<p>The presence of the <code>draggable</code> attribute on any element gives the element new behavior. The beauty of
|
||||
this approach is that we have taught the browser a new trick. We have extended the vocabulary of
|
||||
what the browser understands in a way which is natural to anyone who is familiar with HTML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue