I just read the introduction to Angular JS but I didn’t see anything about a way to code up your HTML header code and footer code just once and have it included in all of your pages.
Is there an official/reccomended way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The official way to do it is to use ngInclude directive, which
"fetches, compiles and includes an external HTML fragment".With this you can reuse the same
header.urlandfooter.urlin all your pages.