Static AngularJS site integration into Kentico

Nicholas Gornall asked on June 24, 2016 07:01

Hi,

I'm trying to integrate a existing Static Angular site into Kentico v9.0.10.

Basically the Angular app requires that it can access a lot of different Markup content using relative urls. Currently these are just stored in html files.

I am unsure of the best way to add the content to Kentico. Any advise would be greatly appreciated.


Hi Roman, thanks for your reply. (And Brenden!)

I have managed to get the Angular code working by using a linked JavaScript file on the main page.

Do you think it would be a a good idea to skip using transformations and just update the Angular code to use REST service to fetch the markup as you suggested?

My main concern is that I would like to try implement the solution so that reusable for other similar pages with different markup content. It would also be nice if it is possible to use the Kentico interface to update and maintain the markup content.

Thanks, Nick

Recent Answers


Brenden Kehren answered on June 24, 2016 07:56

I'd definitely look at Sterling's post on Kentico and Angular if you haven't already. It is for version 8 but things are very similar in v9.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on June 24, 2016 18:04

Also you could implement your transformations in Angular fashion and use REST service to fetch markup (view that currently sits in physical html files), retrieve data you need in a separate rest call and bind view with data.

1 votesVote for this answer Mark as a Correct answer

Nicholas Gornall answered on June 27, 2016 03:02 (last edited on June 27, 2016 08:32)

Updated question.

0 votesVote for this answer Mark as a Correct answer

Yang Wen answered on July 30, 2016 23:15

Sterling's post has some major gaps into his angular + Kentico process.

He alludes to using ng-view in the index page but makes no mention of how the html partials get stored and referenced

Is he leveraging some Kentico function to store and recall clean html partials? Or is he simply hosting the partials in the file system under the /CMS folder?

0 votesVote for this answer Mark as a Correct answer

Nicholas Gornall answered on August 3, 2016 03:03

I spent a long time looking for an answer to that and never found one.

Eventually I settled for simply hosting the partials in the file system.

There isn't much documentation regarding Angular integration into Kentico :(

0 votesVote for this answer Mark as a Correct answer

Mani Sharma answered on October 10, 2017 10:19

I am not sure whether you are still looking for answer to this. I have managed to integrate angular 4 app on kentico instance. I have written the steps in my blog which can be found @ https://manibsharma.blogspot.in/2017/10/angular-4-on-kentico.html

Feel free to connect in case of any further assistance required.

0 votesVote for this answer Mark as a Correct answer

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