Curriculum
Course: AngularJS
Login

Curriculum

AngularJS

AngularJS Tutorial

0/65
Text lesson

What do I Need?

To prepare your applications for animations, you need to include the AngularJS Animate library.

<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-animate.js”></script>

Next, you need to reference the ngAnimate module in your application.

<body ng-app=”ngAnimate”>

Alternatively, if your application has a name, you should include ngAnimate as a dependency in your application module.

Example

<body ng-app=”myApp”>

<h1>Hide the DIV: <input type=”checkbox” ng-model=”myCheck”></h1>

<div ng-hide=”myCheck”></div>

<script>

var app = angular.module(‘myApp’, [‘ngAnimate’]);
</script>