Compare commits
2 Commits
086f924d22
...
3812a8a323
Author | SHA1 | Date | |
---|---|---|---|
3812a8a323 | |||
d1cc5b076d |
103
package-lock.json
generated
103
package-lock.json
generated
@ -367,6 +367,64 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@angular/build/node_modules/rollup": {
|
||||||
|
"version": "4.22.4",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/estree": "1.0.5"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rollup": "dist/bin/rollup"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0",
|
||||||
|
"npm": ">=8.0.0"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@rollup/rollup-android-arm-eabi": "4.22.4",
|
||||||
|
"@rollup/rollup-android-arm64": "4.22.4",
|
||||||
|
"@rollup/rollup-darwin-arm64": "4.22.4",
|
||||||
|
"@rollup/rollup-darwin-x64": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-arm-gnueabihf": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-arm-musleabihf": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-arm64-gnu": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-arm64-musl": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-powerpc64le-gnu": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-riscv64-gnu": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-s390x-gnu": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-x64-gnu": "4.22.4",
|
||||||
|
"@rollup/rollup-linux-x64-musl": "4.22.4",
|
||||||
|
"@rollup/rollup-win32-arm64-msvc": "4.22.4",
|
||||||
|
"@rollup/rollup-win32-ia32-msvc": "4.22.4",
|
||||||
|
"@rollup/rollup-win32-x64-msvc": "4.22.4",
|
||||||
|
"fsevents": "~2.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@angular/build/node_modules/rollup/node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
|
"version": "4.22.4",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"node_modules/@angular/build/node_modules/rollup/node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
|
"version": "4.22.4",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
"node_modules/@angular/cli": {
|
"node_modules/@angular/cli": {
|
||||||
"version": "18.2.6",
|
"version": "18.2.6",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -4152,7 +4210,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.22.4",
|
"version": "4.22.5",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -4164,7 +4222,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-musl": {
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
"version": "4.22.4",
|
"version": "4.22.5",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -11092,11 +11150,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "4.22.4",
|
"version": "4.22.5",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/estree": "1.0.5"
|
"@types/estree": "1.0.6"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"rollup": "dist/bin/rollup"
|
"rollup": "dist/bin/rollup"
|
||||||
@ -11106,25 +11164,30 @@
|
|||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-android-arm-eabi": "4.22.4",
|
"@rollup/rollup-android-arm-eabi": "4.22.5",
|
||||||
"@rollup/rollup-android-arm64": "4.22.4",
|
"@rollup/rollup-android-arm64": "4.22.5",
|
||||||
"@rollup/rollup-darwin-arm64": "4.22.4",
|
"@rollup/rollup-darwin-arm64": "4.22.5",
|
||||||
"@rollup/rollup-darwin-x64": "4.22.4",
|
"@rollup/rollup-darwin-x64": "4.22.5",
|
||||||
"@rollup/rollup-linux-arm-gnueabihf": "4.22.4",
|
"@rollup/rollup-linux-arm-gnueabihf": "4.22.5",
|
||||||
"@rollup/rollup-linux-arm-musleabihf": "4.22.4",
|
"@rollup/rollup-linux-arm-musleabihf": "4.22.5",
|
||||||
"@rollup/rollup-linux-arm64-gnu": "4.22.4",
|
"@rollup/rollup-linux-arm64-gnu": "4.22.5",
|
||||||
"@rollup/rollup-linux-arm64-musl": "4.22.4",
|
"@rollup/rollup-linux-arm64-musl": "4.22.5",
|
||||||
"@rollup/rollup-linux-powerpc64le-gnu": "4.22.4",
|
"@rollup/rollup-linux-powerpc64le-gnu": "4.22.5",
|
||||||
"@rollup/rollup-linux-riscv64-gnu": "4.22.4",
|
"@rollup/rollup-linux-riscv64-gnu": "4.22.5",
|
||||||
"@rollup/rollup-linux-s390x-gnu": "4.22.4",
|
"@rollup/rollup-linux-s390x-gnu": "4.22.5",
|
||||||
"@rollup/rollup-linux-x64-gnu": "4.22.4",
|
"@rollup/rollup-linux-x64-gnu": "4.22.5",
|
||||||
"@rollup/rollup-linux-x64-musl": "4.22.4",
|
"@rollup/rollup-linux-x64-musl": "4.22.5",
|
||||||
"@rollup/rollup-win32-arm64-msvc": "4.22.4",
|
"@rollup/rollup-win32-arm64-msvc": "4.22.5",
|
||||||
"@rollup/rollup-win32-ia32-msvc": "4.22.4",
|
"@rollup/rollup-win32-ia32-msvc": "4.22.5",
|
||||||
"@rollup/rollup-win32-x64-msvc": "4.22.4",
|
"@rollup/rollup-win32-x64-msvc": "4.22.5",
|
||||||
"fsevents": "~2.3.2"
|
"fsevents": "~2.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/rollup/node_modules/@types/estree": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/run-applescript": {
|
"node_modules/run-applescript": {
|
||||||
"version": "7.0.0",
|
"version": "7.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
@ -5,6 +5,7 @@ import { UpperCasePipe } from '@angular/common';
|
|||||||
import { TextPipe } from '../text.pipe';
|
import { TextPipe } from '../text.pipe';
|
||||||
import { HotelService } from './Parent/services/hotel.service';
|
import { HotelService } from './Parent/services/hotel.service';
|
||||||
import { inject } from '@angular/core';
|
import { inject } from '@angular/core';
|
||||||
|
import { filter, map, Observable } from 'rxjs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
@ -18,6 +19,27 @@ export class AppComponent {
|
|||||||
public search: string = "";
|
public search: string = "";
|
||||||
public hotelService: HotelService = inject(HotelService);
|
public hotelService: HotelService = inject(HotelService);
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
const stream: Observable<number> = new Observable((observer) => {
|
||||||
|
observer.next(1);
|
||||||
|
observer.next(2);
|
||||||
|
observer.next(3);
|
||||||
|
observer.next(4);
|
||||||
|
observer.next(5);
|
||||||
|
observer.next(6);
|
||||||
|
observer.next(7);
|
||||||
|
observer.next(8);
|
||||||
|
observer.next(9);
|
||||||
|
observer.next(10);
|
||||||
|
observer.complete();
|
||||||
|
});
|
||||||
|
|
||||||
|
stream.pipe(
|
||||||
|
filter((value:number) => value % 2 === 1),
|
||||||
|
map((value:number) => value * 2)
|
||||||
|
).subscribe((value) => console.log(value));
|
||||||
|
}
|
||||||
|
|
||||||
public test() {
|
public test() {
|
||||||
console.log(this.search);
|
console.log(this.search);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import { bootstrapApplication } from '@angular/platform-browser';
|
import { bootstrapApplication } from '@angular/platform-browser';
|
||||||
import { appConfig } from './app/app.config';
|
import { appConfig } from './app/app.config';
|
||||||
import { AppComponent } from './app/app.component';
|
import { AppComponent } from './app/app.component';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bootstrapApplication(AppComponent, appConfig)
|
bootstrapApplication(AppComponent, appConfig)
|
||||||
.catch((err) => console.error(err));
|
.catch((err) => console.error(err));
|
||||||
|
Loading…
Reference in New Issue
Block a user