integrated json api and angular into app