Why the transition Angular Angular 2 to 5 error?


Need help.
In the transition from Angular Angular 2 to 5 there is a error:

ERROR TypeError: Cannot read property 'name' of undefined
 at checkBindingNoChanges (core.js:9902)
 at checkNoChangesNodeInline (core.js:13951)
 at checkNoChangesNode (core.js:13925)
 at debugCheckNoChangesNode (core.js:14754)
 at debugCheckDirectivesFn (core.js:14656)
 at Object.eval [as updateDirectives] (GeneralFormComponent.html:4)
 at Object.debugUpdateDirectives [as updateDirectives] (core.js:14638)
 at checkNoChangesView (core.js:13763 regulation)
 at callViewAction (core.js:14116)
 at execComponentViewsAction (core.js:14068)

The console error refers to a line in GeneralFormComponent:
<input type="hidden" class="form-control" [(ngmodel)]=the"model.guid" name="guid">

After debugging I realized that the component was called 2 times. The first times the model was only initialized and the model is in fact empty, while the second times model came from the database.
I assume this error spilling it due to the fact that the data came alone and they were abruptly replaced by a new one.

Help solve the problem.
June 8th 19 at 17:24
0 answer

Find more questions by tags Angular