forked from vitalii-andriiovskyi/ngx-owl-carousel-o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubhome.component.html
39 lines (32 loc) · 1.44 KB
/
subhome.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<hr>
<section>
<header class="text-center">
<h2 class="mt-4">Owl Carousel</h2>
<p class="mb-2">"autoHeight=<span class="text-success">true</span>", "URLhashListener=<span class="text-success">true</span>" and "startPosition=<span class="text-warning">'URLHash'</span>"</p>
<nav class="nav nav-pills flex-column flex-sm-row justify-content-center mb-4">
<ng-container *ngFor="let slide of carouselData">
<a class="flex-sm-fill text-sm-center nav-link"
[routerLink]="['/home', 'subhome']" [fragment]="slide.dataHash"
[ngClass]="{'active': slide.dataHash === fragment}" >
{{slide.dataHash}}
</a>
</ng-container>
</nav>
</header>
<div class="container">
<div class="row">
<div class="col-10 offset-1">
<owl-carousel-o [options]="customOptions" (translated)="getPassedData($event)">
<ng-container *ngFor="let item of carouselData; let i=index">
<ng-template carouselSlide [dataHash]="item.dataHash">
<div class="slider">
<!-- <p>{{item.text}}</p> -->
<img class="owl-lazy" [src]="[item.src]" alt="">
</div><!-- /.carousel-item team-member -->
</ng-template>
</ng-container>
</owl-carousel-o>
</div> <!-- /.col-sm-10 col-sm-offset-1 -->
</div> <!-- row -->
</div> <!-- /.container -->
</section>