Ionic v4 - Error ‘typeof Input’ is not callable


#1

if I use @Input " @Input() test; " an error is displayed:

[ts] Value of type ‘typeof Input’ is not callable. Did you mean to include ‘new’? [2348]

I’m using:

  • @ionic/angular": “4.0.0-beta.15”,
  • typescript": “~2.9.2”

Thanks, Vinicius


#2

Hi

can you show your code?


#3

From whence do you import Input?


#4

Don’t import Input from Ionic (import { Input } from '@ionic/angular';) but from Angular (import { Input} from '@angular/core';) :grin: