how to call firebase callable functions from localhost?

I get this error: whenever this cloud function is called: const makeAdmin = firebase.functions().httpsCallable(“makeadmin”); makeAdmin({ make: “admin” }) .then(response => { console.log(response); }) .catch(err => console.error(err)); the function is: const functions = require(“firebase-functions”); const admin = require(“firebase-admin”); admin.initializeApp(); const db = admin.firestore(); const auth = admin.auth(); exports.makeAdmin = functions.https.onCall(async (data, context) => { try {…

Details

How to set :before psudo property for a group of css styles

How can I set :before psudo property for a set of css styles, .two-row-two-column mat-grid-tile:nth-of-type(3) .serveroutput-pop, .two-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop, .two-row-three-column mat-grid-tile:nth-of-type(2) .serveroutput-pop, .one-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop { left: -397px; right: auto; } My expected code is like, (.two-row-two-column mat-grid-tile:nth-of-type(3) .serveroutput-pop, .two-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop, .two-row-three-column mat-grid-tile:nth-of-type(2) .serveroutput-pop, .one-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop)::before { left: -458px; right: auto; }

Details

Angular 8: Observable.subscribe Makes my user class empty

I am new to Angular. I make a call to API GetUserDetailsfromID(id:number):Observable<UserResponse> { let token = localStorage.getItem(“userToken”); return this.http.get<UserResponse>(this.baseUrl + “Users/GetById/” + id, this.getOptions()); } and form repository class I am making a call GetUserDetailsfromID(id:number) { this.dataSource.GetUserDetailsfromID(id).subscribe( x => { this.userresp = x; console.log(this.userresp);//**Here i am able to view data** }); var data = this.userresp;…

Details