What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-13 09:05:25
angular get current date yyyy-mm-dd
import { DatePipe } from '@angular/common'; @Component({ templateUrl: './name.component.html', styleUrls: ['./name.component.scss'], providers: [DatePipe] }) myDate = new Date(); constructor(private datePipe: DatePipe){ this.myDate = thi... Add solution -
Javascript 2022-02-12 17:50:04
AngularFireDatabase is not a observable??
// change to valueChanges() constructor(afDb: AngularFireDatabase) { afDb.list('items').subscribe(console.log); } //to constructor(afDb: AngularFireDatabase) { afDb.list<Item>('items').valueChanges().subscribe(console.log); } Add solution -
CSS 2022-02-10 06:45:01
angular cdk overlay changing styles css
/* First make sure you have the cdk styles if not using material already */ @import '~@angular/cdk/overlay-prebuilt.css'; /** * Using cdk input class property * (intended way) */ .custom-dialog-container .mat-dialog-container { /* add your styles */... Add solution -
Other 2022-02-09 14:10:04
reload ionic page
<!-- Custom Refresher Properties --> <ion-content> <ion-refresher slot="fixed" pullFactor="0.5" pullMin="100" pullMax="200"> <ion-refresher-content></ion-refresher-content> <... Add solution -
Javascript 2022-02-02 19:51:26
angular back button
import {Component} from '@angular/core'; import {Location} from '@angular/common'; @Component({ // component's declarations here }) class SomeComponent { constructor(private _location: Location) {} backClicked() { this._location.back(); } } Add solution -
Other 2022-02-02 19:06:42
ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError[t -> t]: StaticInjectorError(Platform: core)[t -> t]
Angular CLI: 6.0.8 Node: 10.2.1 OS: linux x64 Angular: 6.0.4 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router - 0.6.8, .6.8, .6.8, .6.8, -0.6.8, @angular/cdk... Add solution -
TypeScript 2022-02-02 17:45:10
mat card api
import {MatCardModule} from '@angular/material/card'; Add solution