Skip to content

Instantly share code, notes, and snippets.

@dhavaln
Last active July 3, 2018 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhavaln/a7174e0adf8d453343c8430f96b68f97 to your computer and use it in GitHub Desktop.
Save dhavaln/a7174e0adf8d453343c8430f96b68f97 to your computer and use it in GitHub Desktop.
Integrate Amplify
import { Component } from '@angular/core';
import Amplify from 'aws-amplify';
import aws_exports from '../aws-exports';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
message = '';
ngOnInit(){
Amplify.configure(aws_exports);
console.log('Amplify Initialised');
this.message = "Amplify Initialised";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment