Skip to content

Instantly share code, notes, and snippets.

@kobvel
Created October 8, 2017 09:09
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 kobvel/7e8c76c4cb23de8bc4d26b09ba77853d to your computer and use it in GitHub Desktop.
Save kobvel/7e8c76c4cb23de8bc4d26b09ba77853d to your computer and use it in GitHub Desktop.
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