wire up angularjs