12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import { Component, OnInit } from '@angular/core';
- import Swiper from 'swiper';
- import { Router } from '@angular/router';
- @Component({
- selector: 'app-tab1',
- templateUrl: 'tab1.page.html',
- styleUrls: ['tab1.page.scss']
- })
- export class Tab1Page implements OnInit {
- constructor(private router: Router) {}
- navigateToBannerPage(banner: string) {
-
- console.log('Navigating to Banner page: ' + banner);
- }
- navigateToRecentPage(recent: string) {
-
- console.log('Navigating to Recent page: ' + recent);
- }
- navigateToMoviePage(hotMovie: string) {
-
- console.log('Navigating to Movie page: ' + hotMovie);
- }
- navigateToLocationPage(location: string) {
-
- console.log('Navigating to Location page: ' + location);
- }
- navigateToRoutePage(route: string) {
-
- console.log('Navigating to Route page: ' + route);
- }
- navigateToCityPage(city: string) {
-
- console.log('Navigating to City page: ' + city);
- }
-
- navigateToBlankPage() {
-
- console.log('Navigating to Blank page');
- }
- ngOnInit() {
- const swiper = new Swiper('.swiper-container', {
- loop: true,
- pagination: {
- el: '.swiper-pagination',
- clickable: true,
- },
- autoplay: {
- delay: 2000,
- },
- speed: 1000,
- });
- }
- }
|