#input field doesn t show up

61 messages ยท Page 1 of 1 (latest)

rancid apex
#

need an input balk

steady mist
#

What do you mean? The input is visible on top of your screenshot

rancid apex
#

inputfield

steady mist
#

yes, that's the bordered content taking full width

steady mist
#

ok let's reset: what is your problem?

rancid apex
#

just want an input field

steady mist
#

but you have one, so explain your real problem

rancid apex
steady mist
#

That's that part from your screenshot

rancid apex
steady mist
#

<label for"Server name"></label>
for attribute expects the value to be the ID of your input, that's not the displayed text.
You need to move it between the opening and closing tags of the label

#

That's why you do not see the label text

rancid apex
rancid apex
rancid apex
steady mist
#

Can you provide a link to the Udemy course?

steady mist
# rancid apex

Watch your screenshot: there is the label 'Server name' AND the input.
But there is no label on your own application

#

That's a great Udemy course: I highly doubt there is something like <label for"Server name"></label> in its content. What motivated you to use such a syntax?

rancid apex
rancid apex
steady mist
#

Are you sure it's not <label>Server name</label>?

rancid apex
#

oh that s it

steady mist
rancid apex
#

also can t find ngModel

#

so annying lol

#

anyone?

steady mist
# rancid apex

Once again I highly doubt the course is telling you to create a @NgModule into the file of a component. It sounds like you are trying to skip steps.

rancid apex
#

and it can t find ngModel

steady mist
rancid apex
#

but howe do i fix it?

steady mist
rancid apex
steady mist
#

then add FormsModules in the imports array

rancid apex
#

๐Ÿ˜ฎโ€๐Ÿ’จ

steady mist
#

underlined text means there is an error, what's the error?

steady mist
#

',' expected : what is an array?

rancid apex
#

fixed

#

doesn t seem to do it tho

steady mist
#

stop ng serve and restart it

rancid apex
#

that works thx ๐Ÿ™‚