Ok, I am a little... confused by this plugin.. I added the script at the end of the body
<body>
<div id="first">
//a lot of text
</div>
<div id="second">
//more text
</div>
<div id="leo">
//here is where the plugin should work
</div>
</body>
<script src="js/jquery.appear.js"></script>
</html>
this is what I have in the js file
app.controller('comparativaCtrl', function ($scope, $rootScope, $routeParams, $location, $http, Data)
{
$('#leo').appear();
$(document.body).on("appear", "#leo", function() {
alert("al fin");
});
});
However, nothing happens... I checked and I have jquery, and besides it, this doesn't require dependencies as far as I know.... Notice that the app.controller is used because my js code is in the controller of a partial (I am using Angular). If anyone has any idea of why this isn't working please let me know