controller+directive+factory+http