cmacdonnacha / angularjs-foundation-boilerplate

A simple and well structured boilerplate project based on AngularJS and Zurb's Foundation.
MIT License
9 stars 2 forks source link

Controllers are firing multiple times #4

Closed shreysaroch closed 7 years ago

shreysaroch commented 7 years ago

Just type console.log('something'); in your controller and see how many times it get printed in console.

cmacdonnacha commented 7 years ago

Thanks @shreycp , which controller?

shreysaroch commented 7 years ago

I've resolved the issue, as your ui-view is called twice because of layout.tpl.html. Try to route mobile view through some other file, by calculating screen size.