Questions tagged angular

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

Directory structure of angular application, in case of role implementation

What would be the best directory structure of angular application, in case we have to implement three roles, suppose admin, supervisor,user. Normally we have files in feature directory having feature module. But would be case for three roles as three of them has different views. Thanks Source: New feed Source Url Directory structure of angular […]

By Faisal
Published
Categorized as angular, angular-material, asp.net, c#, javascript Tagged

Angular Material Drag & Drop : Custom Pipe Issue

I’m working on some project with Angular Material Drag And Drop. I’ve made a simplified example on StackBlitz https://stackblitz.com/edit/drag-and-drop-with-pipe?file=src%2Fapp%2Fdispatch.component.ts A list of pets and a list of boxes. You can drag the pets and drop them in a zone of the boxes list, so each box can contain X pets. This works ! But I […]

By David
Published
Categorized as angular, angular-material, javascript, typescript Tagged

Best practises in case of possibly large requested file which is needed to be fully displayed

The case I am implementing a web app with [email protected] and [email protected] In my app, I provide the users with a form with options. Based on the selected options, I request the backend for the relative results. The results are rows of the form {orderNumer: integer, message: string}. The number of rows, that the backend […]

By Alex
Published
Categorized as angular, angular-material, django Tagged

Pop an item if its value is false

I am using mutiple select from Angular Material. I am able to get the item’s value and checked value(true/false). I need to create an array, push if that item is true and pop if that item is false. I have tried getting the boolean value: html : <mat-form-field> <mat-select multiple placeholder=”Select Shows”> <mat-option (onSelectionChange)=”change($event)” *ngFor=”let […]

By Kedar Kulkarni
Published
Categorized as angular, angular-material Tagged

Angular Material tooltip bug workaround with HammerJS

I recently discovered a few bugs relating to touch scrolling issues from mat-tooltips in my application. This behavior is outlined here: GitHub Issue. There is a workaround solution posted in the issue page that seems to have worked in the past. This is no longer is the case. The post has instructions for overriding the […]

By CAlex
Published
Categorized as angular, angular-material, hammer.js Tagged

trouble for show popup window on angular

I have some problems with showing popup window,the content of the popup is shown on the bottom of the page. its supposed to be on a window im using angular 8. i have tried to instal npm i dialog but it still dosent work. im using chrome as a navigator and the popups are not […]

By Zied Amami
Published
Categorized as angular, angular-material Tagged

Angular Material table: unbind checkbox click from row

I’m trying to unbind the row selection from the table rows so that clicking anywhere within the row doesn’t tick the checkbox. I want the checkbox only to be ticked when the box itself is clicked, so that I can make room to add expandable rows when the user clicks elsewhere (kind of like the […]

By claxtastic
Published
Categorized as angular, angular-material, html Tagged

unable to create a expandable table row using angular material

i am having a data like below [ { “_id”: “c9d5ab1a”, “subdomain”: “wing”, “domain”: “aircraft”, “part_id”: “c9d5ab1a”, “info.mimetype”: “application/json”, “info.dependent”: “parent”, “nested”: [ { “domain”: “aircraft”, “_id”: “c1859902”, “info.mimetype”: “image/jpeg”, “info.dependent”: “c9d5ab1a”, “part_id”: “c1859902”, “subdomain”: “tail” } ] }, { “_id”: “1b0b0a26”, “subdomain”: “fuel”, “domain”: “aircraft”, “part_id”: “1b0b0a26”, “info.mimetype”: “image/jpeg”, “info.dependent”: “no_parent” } ] here […]

By dexter
Published
Categorized as angular, angular-material Tagged

How to create a nested mat-table in a table with expandable rows using angular material

I have the below data [ { “_id”: “c9d5ab1a”, “subdomain”: “wing”, “domain”: “aircraft”, “part_id”: “c9d5ab1a”, “info.mimetype”: “application/json”, “info.dependent”: “parent”, “nested”: [ { “domain”: “aircraft”, “_id”: “c1859902”, “info.mimetype”: “image/jpeg”, “info.dependent”: “c9d5ab1a”, “part_id”: “c1859902”, “subdomain”: “tail” } ] }, { “_id”: “1b0b0a26”, “subdomain”: “fuel”, “domain”: “aircraft”, “part_id”: “1b0b0a26”, “info.mimetype”: “image/jpeg”, “info.dependent”: “no_parent” } ] Here if “info.dependent”: […]

By dexter
Published
Categorized as angular, angular-material Tagged

When I use MatDialog, ngOnInit only fire the first time. Why?

I got some datas from Firebase and I use them in a Component called Categories that I open in a dialog box with MatDialog. When I open the dialog for the first time, I got my datas and they are displayed. But when I close the dialog and reopen it, the datas disappear. I subscribe […]

By spiNOops
Published
Categorized as angular, angular-material, typescript Tagged
1 6,681 6,682 6,683 6,684 6,685 6,764

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