shared.html
[routerLink]="['/tags',tagtext]
|---this is variable
shared.module
import { RouterModule } from '@angular/router';
imports: [
CommonModule,
RouterModule
],
select |
Signature:
select(slideId: string)
Return type:
void
Navigate to a slide with the specified identifier.
|
prev |
Signature:
prev()
Return type:
void
Navigate to the next slide.
|
next |
Signature:
next()
Return type:
void
Navigate to the next slide.
|
pause |
Signature:
pause()
Return type:
void
Stops the carousel from cycling through items.
|
cycle |
Signature:
cycle()
Return type:
void
Restarts cycling through the carousel slides from left to right.
|
<ngb-carousel>
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=1" alt="Random first slide">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</ng-template>
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=2" alt="Random second slide">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</ng-template>
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=3" alt="Random third slide">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</ng-template>
</ngb-carousel>
<ngb-carousel #ngbCarouselid="ngbCarousel">
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=1" alt="Random first slide">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</ng-template>
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=2" alt="Random second slide">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</ng-template>
<ng-template ngbSlide>
<img src="https://lorempixel.com/900/500?r=3" alt="Random third slide">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</ng-template>
</ngb-carousel>
<ngb-carousel #ngbCarouselid="ngbCarousel">
<ng-template ngbSlide id="myfirstSlide">
<img src="https://lorempixel.com/900/500?r=1" alt="Random first slide">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</ng-template>
<ng-template ngbSlide id="mysecondSlide">
<img src="https://lorempixel.com/900/500?r=2" alt="Random second slide">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</ng-template>
<ng-template ngbSlide id="mythirdSlide">
<img src="https://lorempixel.com/900/500?r=3" alt="Random third slide">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</ng-template>
</ngb-carousel>
<ngb-carousel #ngbCarouselid="ngbCarousel"
[interval]="0">slide | A carousel slide event fired when the slide transition is completed. See NgbSlideEvent for payload detail |
<?php
use
Workerman\
Worker;
require_once
'./Workerman/Autoloader.php';
// 创建一个Worker监听2345端口,使用http协议通讯
$http_worker =
new Worker(
"http://0.0.0.0:2345");
// 启动4个进程对外提供服务
$http_worker->count =
4;
// 接收到浏览器发送的数据时回复hello world给浏览器
$http_worker->onMessage =
function($connection, $data)
{
// 向浏览器发送hello world
$connection->send(
'hello world');
};
// 运行worker
Worker::runAll();
?>