Kentico webpart or widget with angular 5

Dennis Hulsmans asked on January 17, 2018 16:08

Hi

Does anyone have experience with webparts & angular 5? What would be the best approach to achieve this?

  • 1 app with multiple components which you can use inside different webparts
  • per webpart an angular app (this doesn't seem to be the way to go)

For example:

We want to implement a search module connected to an external API, but this should be a webpart and/or widget which the customer can drag & drop on a design tab (portal engine) and configure with some properties. We could do this the webforms way (with postbacks and/or update panels), but we would like to try this preferably with Angular 5 .

All help/tips/best practices are welcome

KR, D.

Recent Answers


Roman Hutnyk answered on January 17, 2018 17:37

Dennis, I'm not sure it is a good idea to mix angular with web forms globally. The intention of angular is building single page application, which is not compatible with web forms and the way they work.

I'd say it is fine to use it on some particular page at the most.

I'm not saying it is not possible, technically you can do that, but I doubt its worth.

1 votesVote for this answer Mark as a Correct answer

Dennis Hulsmans answered on January 18, 2018 13:10

Hi Roman

Thank you for your quick answer. You confirmed what I was thinking & fearing. It's really unfortunate that our customer wants the portal engine and thus we need to use web forms ("old" technology).

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 18, 2018 14:57

Hey Dennis,

Although it didn't make it into K11, MVC Widgets were on the roadmap, so the future may still have in store them.

https://www.kentico.com/product/roadmap

Postponed MVC Widgets

Building on new Kentico MVC development support introduced in Kentico 10, Kentico 11 is going to feature widget support for Kentico MVC. MVC widgets enable non-technical roles to build and manage pages using Kentico MVC.

1 votesVote for this answer Mark as a Correct answer

Dennis Hulsmans answered on January 18, 2018 15:12

Hi Trevor

Thanks for your response. Indeed, the development has been postponed mainly because of the GDPR stuff... I honestly hope they continue the development of the webpart/widget support in MVC :)

KR, D.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on January 18, 2018 16:47

If you haven't looked into K11, it has GDPR support and reporting, huge new feature!

https://docs.kentico.com/k11/configuring-kentico/gdpr-compliance

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.