Implement console scrolling using directive