I am creating a blog site with Angular.I have a question about how to keep the data on the blog page I created.

Asked 1 years ago, Updated 1 years ago, 65 views

I am creating a blog site using angular7.
I'm using various components to create blog parts, and I'm going to ask you about the data you're going to write when you finally create a blog.

One is to write it out as HTML and save it, and the other is to save json data for blogging.

When I save HTML itself as data, I think it would be easy to display it with innerHtml when I look at the page, and when I use json data as data, I think there are two ways to create a screen from the component and display it. Where should I keep the blog page?

javascript angular6

2022-09-30 21:37

1 Answers

If you use angular, you can choose json.
It should be easier to maintain than it should be with html


2022-09-30 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.