bramdevries / angular-table-of-contents

2 stars 4 forks source link

Using angular-table-of-contents with an Angular SPA #1

Open ColinWa opened 8 years ago

ColinWa commented 8 years ago

I Have problems with my angular SPA app. I have a FAQs html page (with its own controller) that is situated in my "views" folder. It gets loaded within the index.html and because of thatt it generates anchor links from the index page rather than from the FAQs page. So every table of content entry clicked redirects to the home page of the angular application.

For example: My home page url is "http://domain.biz/#/" my Faqs page url is "http://domain.biz/#/faqs" my anchored links generated by angular-table-of-contents will be "http://domain.biz/#how-do-i-pay-the-reduced-payments" instead of "http://domain.biz/#/faqs/#how-do-i-pay-the-reduced-payments"

Thanks Colin

ColinWa commented 8 years ago

i solved the problem by changing you source code to fix the issue. Can i fork or pull you source code and push my fix for considerations and contributions as well. Thanks Colin