It is very difficult for me to make animations in angular compared to jquery. There are so many versions of angular animation fadein and fadeout that I found them from blogs / tutorials / etc, some of them are in the old version of angular. angular seems very inconsistent when a newer version replaces the old ones. I do not see any standard way to do this. So I donβt know where to start.
I just disappear in a form or html document when a button is clicked.
HTML
<button ng-click="loadInclude" >Load Include Form</button> <div ng-include="'form.php'" ng-if="readyToLoadForm===true"></div>
angular
var app = angular.module("myapp", ['ngAnimate']); app.controller("FormController",function($scope) { $scope.readyToLoadForm = false; $scope.loadInclude = function(e) { $scope.readyToLoadForm = true; }; } );
any ideas?
source share