Simple example of angular hooked to input