grid into ng controller