I am trying to get new line event in angular js .Ia m able to get it in jQuery but fail to get in angular js
I do like that in jQuery How to get event when text goes to new line? http://jsfiddle.net/Blade0rz/TnTj9/
But same thing I apply on angular I did not get event why ? same thing I need to get event when user move to bottom of div ? Mean when user scroll text to bottom it show alert
I follow this link Detecting when user scrolls to bottom of div with jQuery Here is my code
http://plnkr.co/edit/HfFnCuRnKkIQvww2lgSm?p=preview
var app =angular.module("app",['ionic']);
app.controller('cntr',function($compile,$interval){
var h = -1;
$interval(function(){
var newHeight =angular.element(document.getElementById('appendId')).append("Hi this test ").offsetHeight;
if(h == -1) h = newHeight;
if(h != newHeight) {
h = newHeight;
alert("I've changed height");
}
/* if((this).scrollTop() + (this).innerHeight() >= this.scrollHeight) {
alert('end reached');
} */
},1000)
})