I am developing an App in Ionic ... in a module I am showing data from the database. These data bring an id, said id I'm placing it in a for later in my controller recover that id, and make actions on that record. The problem starts here, in my controller I declared an array such that FixName: any [] = [] . Inside the constructor I defined two index of the controller nameArray ['index1'] = '' .
In my view I defined an Input in which I assign (As I had already said the id of a record).
When I access the view, it gives me an error, the error is because my fix in the constructor is defining it as empty, and in the view I am defining that arrangement with a data.
[