Why can't I globally register components?
a components section like below works for registering
...
components : {"p-inputtext": inputtext}
but global registration seems to work
Vue.component({"p-inputtext":inputtext}) does not work.
It does not give me an error but get the error when
<p-iinputtext> is read on loading.
Global vs Local registration
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
It seems there is a typo issue. Could you try to use this:
Code: Select all
Vue.component("p-inputtext", inputtext)
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
I did same mistake. Now, I have corrected previous post. Thanks for the feedback.
Best Regards,
Best Regards,
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests