@Input() value is always undefined
@Input() value is always undefined I have created a user photo component which takes an @Input() value, this value is the userId. If the value is passed in then I retrieve information from Firebase linking to this userId, if it doesn't then I do something else. user photo component @Input() Firebase My user-photo component import { Component, OnInit, OnDestroy, Input } from '@angular/core'; @Component({ selector: 'user-photos', templateUrl: './user-photos.component.html', styleUrls: ['./user-photos.component.css'] }) export class UserPhotoComponent implements OnInit { @Input() userId: string; constructor() { console.log('userId is:',this.userId); } ngOnInit() { } ngOnDestroy() { } } As you can see I have declared the userId as @Input() , now on my edit-profile component I have the following: @Input() edit-profile component <user-photos [userId]="TestingInput"></user-photo...
