Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best Practice for header & footer #220

Open
bulutcy opened this issue Jul 21, 2013 · 2 comments
Open

Best Practice for header & footer #220

bulutcy opened this issue Jul 21, 2013 · 2 comments
Labels

Comments

@bulutcy
Copy link

bulutcy commented Jul 21, 2013

Hello,
I just can't figure out, what is the best practice for not to repeat code of header and footer?
I have a single page app with 4 pages, all have same header and footer and located on separate html files.
routeProvider changes data in data-role="page" element, so I had to put all my header and footer codes to all pages.

Could you please suggest a better way?

@tbosch
Copy link
Contributor

tbosch commented Aug 1, 2013

Hi,
the best way would be to create directives for headers and footers. However, this library does not support this. There is a new project called angular-jqm (see the Readme.md for the link) that does allow directives for headers / footers.

Tobias

@bulutcy
Copy link
Author

bulutcy commented Aug 16, 2013

Thank you for answer. Btw I did my own directives for structure using ng-app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants