ui-carousel icon indicating copy to clipboard operation
ui-carousel copied to clipboard

ng-if ng-src not working

Open phtmalvinder opened this issue 7 years ago • 1 comments

ng-if and ng-src are not working when written in

carousel-item

<ui-carousel flex layout="row" slides="ads" slides-to-show=3 slides-to-scroll=1 infinte="true" dots="true" autoplay="true">
		<carousel-item>
		<md-card>
	          <video ng-if='item.attachment_type === "video/mp4" ' controls="controls" style="height: 250px;">
	            <source ng-src="{{ item.banner_attachment }}" />
	          </video>
	          <img ng-if="item.attachment_type === 'image/png' || item.attachment_type === 'image/jpeg' || item.attachment_type === 'image/gif' || item.attachment_type === 'image/bmp' || item.attachment_type === 'image/jpg'" ng-src="{{ item.banner_attachment }}" class="md-card-image" style="max-width: 100%; width: auto; height: 250px;" />	          
	        <md-card-content>
	        	<p>{{ item.ad_description | limitTo: 50 }}</p>
	        </md-card-content>
	        <md-card-actions>

	        </md-card-actions>
		</md-card>
		</carousel-item>
	</ui-carousel>

phtmalvinder avatar May 24 '17 10:05 phtmalvinder

Same issue here, ng-show, ng-hide work just fine on the carousel items.

seanmalter avatar Jun 22 '17 15:06 seanmalter