If you have defined your controller in such way
		
			<div ng-controller="mainController as mainCtrl">
		 
		then you just shouldn't miss it when you define your datasource or adapter:
		
			<div ui-scroll="item in mainCtrl.datasource" adapter="mainCtrl.adapter">{{item}}</div>
		 
		"Hide/Show" button provides a nested scope between mainController and the Viewport via ng-if directive.