Questions tagged angular

Explore the latest questions and answers asked by our top developers.

I want to stretch a logo’s width and fix the size of logo so that it is clearly visible

The selected logo should be visible enough.I have added media queries but not able to work it properly As of now I have done <div class="row"> <div class="col-6"> <h3 class="eta m-0">Estimated Delivery Date</h3><br> <h1 class="textFontAndColor">Friday 29, September</h1> </div> <div class="col-6"> <img src="https://cdn.worldvectorlogo.com/logos/united-states-postal-service.svg" class="fill"><br> <span class="textFontAndColor">EZ00093838993N</span> </div> </div> Source: Angular Questions

By Vimlesh Kumar
Published
Categorized as angular, css, html Tagged , ,

Trying to get a div to the top of another div

I’m trying to get the div with the product name amount price and total to the top of the div it’s nestled in, but changing the position isn’t working. Stuff like vertical alignment didn’t work for me either. I made a screenshot of the page, the buttons are in the right place, it’s just the […]

By Yovabo
Published
Categorized as angular, bootstrap-4 Tagged ,

How to segregate an array of object by using map?

I have to form an array of object in another array of object based on id. I was able to group the object based the "applicationId" but was not able to group the inside array of attributes and values array. Also the above code gives me duplicate objects. Please help with this I know its […]

By Vishnu Shenoy
Published
Categorized as angular, javascript Tagged ,

Firebase cloud functions – Error: Reference.child failed: First argument was an invalid path

I’m trying to get push notifications to work using this tutorial: https://www.youtube.com/watch?v=z27IroVNFLI It’s obviously a bit old, but there aren’t many good alternatives for Firebase web apps. I’m getting the following error when my cloud function runs: fcmSend Error: Reference.child failed: First argument was an invalid path = "/fcmTokens/[object Object]". Paths must be non-empty strings […]

By Kellen
Published
Categorized as angular, firebase Tagged ,

AgGrid custom template for no data is not working correctly

I am trying to update overlayNoRowsTemplate in case no data exists for table. But its not working correctly i have used below code .ts export class AppComponent { rowData = [] columnDefs = [ { headerName: "ID", field: "id", }, { headerName: "Value", field: "value", }, ]; overlayNoRowsTemplate = `This is Custom Message for no […]

By Mamta
Published
Categorized as ag-grid, angular Tagged ,

Property JSON does not exists on type Object

I’m trying to read a JSON configuration file like this this.http.get(‘assets/env/env.json’).pipe(map( res => res.json())).pipe(catchError((error: any): any => { console.log(‘Configuration file "env.json" could not be read’); return Observable.throw(error.json().error || ‘Server error’); })).subscribe( (envResponse) => { endpoint="conf-" + envResponse.env + ".json"; alert(endpoint); }); But res.json() shows as error Im importing these classes import { Injectable } from […]

By Sandeep Thomas
Published
Categorized as angular, angular9 Tagged ,

Property JSON does not exist on type Object

I’m trying to read a JSON configuration file like this this.http.get(‘assets/env/env.json’).pipe(map( res => res.json())).pipe(catchError((error: any): any => { console.log(‘Configuration file "env.json" could not be read’); return Observable.throw(error.json().error || ‘Server error’); })).subscribe( (envResponse) => { endpoint="conf-" + envResponse.env + ".json"; alert(endpoint); }); But res.json() shows as error I’m importing these classes import { Injectable } from […]

By Sandeep Thomas
Published
Categorized as angular, angular9 Tagged ,

"x" is read-only, but it isn’t

I have a Angular 10 (Typescript 3.9) project with the following class: export class Document { constructor( public id: number, … public tags: Tag[] ) { this.id = id; … this.tags = tags; } } If I try to change tags (reassign or push) with document.tags = … for example in an existing object, I […]

By Jehob
Published
Categorized as angular, typescript Tagged ,

MSAL No User Signed In Error in Brave and Incognito

I have an Angular 9 app that uses MSAL to authenticate with a Microsoft Azure Active Directory that is working in Chrome, Edge and IE, but is not working in Chrome Incognito or Brave browsers. I get an error saying AADSTS50058: A silent sign-in request was sent but no user is signed in. Full Error […]

By dmoore1181
Published
Categorized as angular, brave, incognito-mode, msal Tagged , , ,

How to build a dynamic TreeView in Angular with Spring?

The database stores a list of articles : Article1 – Article1.1 – Article1.2 – Article1.3 Article2 – Article2.1 – Article2.2 – Article2.3 – Article2.3.1 – Article2.3.2 spring also has methods that call parent and child articles: @Override public ResponseEntity<List<ArticleShortDto>> getChildsOfParentId(@Valid Long parentId) { logger.debug("в метод getChildsOfParentId пришел параметр parentId : "+parentId); return ResponseEntity.ok(articleAdminService.getChildArticlesByParentId(parentId)); } @Override […]

1 5,592 5,593 5,594 5,595 5,596 5,700

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq