我怎样才能在第一张幻灯片上隐藏离子幻灯片?我的代码类似于:
<ion-slide-page ng-repeat="item in lista_tutorial[0].lista_slide">
<div ng-if="item.tipo == 'benvenuto'" class="divBenvenutoTreVeline">
ABC
</div>
<div ng-if="item.tipo == 'home'" class="divBenvenutoTreVeline">
BCD
</div>
<ion-slide-page>
所以我有2张幻灯片,但只有一张标签。
由于
答案 0 :(得分:1)
您可以使用
<ion-slides [pager]="!isFirstSlide()">
与
isFirstSlide(){
return this.yourSlides.isBeginning();
}
答案 1 :(得分:0)
使用 ng-if =&#34; $ first&#34;
public void onImageCompress(Bitmap image) {
ByteArrayOutputStream bao = new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG, 100, bao);
byte [] ba = bao.toByteArray();
String ba1= Base64.encodeToString(ba, Base64.DEFAULT);
generateNoteOnSD("imagebytes.txt", ba1 + "");
}
public void generateNoteOnSD(String sFileName, String sBody) {
try {
File root = new File(getExternalFilesDir(sFileName), "image");
if (!root.exists()) {
root.mkdirs();
}
File gpxfile = new File(root, sFileName);
FileWriter writer = new FileWriter(gpxfile);
writer.append(sBody);
writer.flush();
writer.close();
System.out.println("Saved");
} catch (IOException e) {
e.printStackTrace();
}
}