Make the carousel work even when it's displayed using a template or an 'ng-view'. `updateContainerWidth` was setting the container's width to '0px' before the item is displayed.