Created
October 8, 2017 09:09
-
-
Save kobvel/7e8c76c4cb23de8bc4d26b09ba77853d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { OnInit, Component } from '@angular/core'; | |
import { ActivatedRoute } from '@angular/router'; | |
import { IProfileData } from './profile.model'; | |
@Component({ | |
selector: 'app-profile', | |
templateUrl: './profile.component.html' | |
}) | |
export class ProfileComponent implements OnInit { | |
public profileData: IProfileData; | |
constructor(private route: ActivatedRoute) { } | |
ngOnInit() { | |
this.profileData = this.route.snapshot.data.profileData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment