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
|
@ -2,15 +2,12 @@
|
|||
<div><span class="hint"></span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><div class="nganimate-page"><h2>ngAnimate</h2>
|
||||
<p>The ngAnimate module is an optional module that comes packed with AngularJS that can be included within an AngularJS
|
||||
application to provide support for CSS and JavaScript animation hooks.</p>
|
||||
<p>To make use of animations with AngularJS, the <code>angular-animate.js</code> JavaScript file must be included into your application
|
||||
and the <code>ngAnimate</code> module must be included as a dependency.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
angular.module('App', ['ngAnimate']);
|
||||
</pre>
|
||||
<p>Then, to see animations in action, all that is required is to define the appropriate CSS classes
|
||||
<div><div class="nganimate-page"><h2>ngAnimate</h1>
|
||||
<p><code>ngAnimate</code> is an optional module that provides CSS and JavaScript animation hooks.</p>
|
||||
<p><h1>Installation</h1><p>First include <code>angular-animate.js</code> in your HTML:</p><pre><code> <script src="angular.js">
|
||||
<script src="angular-animate.js"></pre></code><p>You can also find this file on the <a href="https://developers.google.com/speed/libraries/devguide#angularjs">Google CDN</a>, <a href="http://bower.io/">Bower</a> (as <code>angular-animate</code>), and on <a href="http://code.angularjs.org/">code.angularjs.org</a>.</p><p>Then load the module in your application by adding it as a dependant module:</p><pre><code> angular.module('app', ['ngAnimate']);</pre></code><p>With that you're ready to get started!</p></p>
|
||||
<h1>Usage</h2>
|
||||
<p>To see animations in action, all that is required is to define the appropriate CSS classes
|
||||
or to register a JavaScript animation via the $animation service. The directives that support animation automatically are:
|
||||
<code>ngRepeat</code>, <code>ngInclude</code>, <code>ngSwitch</code>, <code>ngShow</code>, <code>ngHide</code> and <code>ngView</code>. Custom directives can take advantage of animation
|
||||
by using the <code>$animate</code> service.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue