-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathour-work.component.ts
38 lines (30 loc) · 1019 Bytes
/
our-work.component.ts
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
import { Component, OnInit, HostListener } from '@angular/core';
import projects from '../../../assets/json/projects.json';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ProjectCardComponent } from '../project-card/project-card.component';
@Component({
selector: 'app-our-work',
templateUrl: './our-work.component.html',
styleUrls: ['./our-work.component.scss']
})
export class OurWorkComponent implements OnInit {
projects: any = projects;
constructor(private modalService: NgbModal) { }
ngOnInit() {
}
showProjectCard(data) {
const card = new ProjectCardComponent(this.modalService);
card.open(data);
}
slideConfig = {
"slidesToShow": 3,
"slidesToScroll": 1,
"nextArrow": "<div class='btn btn-danger btn-just-icon fa fa-angle-right'></div>",
"prevArrow": "<div class='btn btn-danger btn-just-icon fa fa-angle-left'></div>",
"autoplay": true,
"autoplaySpeed": 2000,
"adaptiveHeight": true,
"dots": true,
"infinite": true
};
}