Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  23] [ 2]  / answers: 1 / hits: 21841  / 7 Years ago, thu, april 20, 2017, 12:00:00

I am a beginner in Angular 4/ Angular 2. I am building an app which consists of



1) static html files( aboutus.html, pricing.html, contact us.html etc), with corresponding css, js files
2) single page application with complex functionality



The first part #1 does not need Angular at all as it's completely static. After login a user comes to #2. From the Angular tutorials that I went through, it seems I need to combine #1 and #2 together and still have to create components etc out of #1, which I feel is unnecessary.



Is there a way, I can build this project such that I can use the static html as is and use Angular only for the dynamic single page app? Any helpful links or examples would be much appreciated.


More From » html

 Answers
12

You can't use the router to integrate static html pages, but you still can use normal HTML links.
There is no need to name the file that contains the Angular application index.html


[#58077] Tuesday, April 18, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lailab

Total Points: 706
Total Questions: 102
Total Answers: 95

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
;