Import gapi.auth2 in angular 2 typescript

To use gapi and gapi.auth with Angular2, install the type script definitions using NPM. npm install –save @types/gapi npm install –save @types/gapi.auth2 This will install two packages, @types/gapi and @types/gapi.auth2 to the node_modules folder and save the configuration in package.json. Inspect your node_modules folder to check they install correctly. If your Angular app is called … Read more