Angular - trigger event on scope from console example