Last active
July 3, 2018 05:51
-
-
Save dhavaln/a7174e0adf8d453343c8430f96b68f97 to your computer and use it in GitHub Desktop.
Integrate Amplify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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