Questions tagged duplicates

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

Downloaded two main-es2015 file on page load

On refreshing an angular application. In the network tab on filter able to see main-es2015 being shown as downloaded(Duplicate scriptenter image description here) Source: Angular Questions

Browser tab knows when it has been duplicated

I want my browser tab to know when it has been duplicated. The only similar solutions I’ve seen focus on just the duplicated tab knowing it’s been duplicated or the original tab knowing it’s been duplicated but this only works on Chrome. Requirements: Solution works on all modern browsers Bonus if the solution: Works on […]

Cannot redeclare block-scoped variable ‘Zone’ in zone.d.ts file after update angular to version ^12

after updating angular version v11 to latest ^v12 I received the following error,I was looking for duplicate node_modules folder but … couldn`t found anything. Source: Angular Questions

angular remove duplicates in an observable

In this mat-option i’m tryng to show data from an observable i subscribed to. <mat-option *ngFor="let option of (filteredCustomer | async)?.Items" [value]="option" (onSelectionChange)="searchDest($event)"> {{option.Cityname}} </mat-option> The name of the observable is filteredCustomer. Now in the mat option i’m tryng to show city names. Thats the result. Los Angeles Boston Detroit Los Angeles Washington Los Angeles […]

how to block duplicates while pushing data into an array of objects using ng-repeat in angularjs

I am trying add div elements dynamically using ng-repeat. <div class="dynamicRow"> <div class="col-sm-6"> <input class="form-control" ng-disabled="true" type="text" ng-model=’item.name’ id=’item-{{$index}}’ class=’input-{{$index}}’/> </div> </div> </div> If I use ng-repeat with track by item.id, it is not allowing duplicates but once i get the duplicate exception, after that i am not able to add any new item as […]

Using push() method and indexOf() method to remove/check duplicate dates from an array in AngularJS1

Iam able to pull EPOCH dates and convert them into a string successfully, however what I previously coded didnt check or remove duplicates. Anyone has an idea of what I can add to do so? In this case, the timestamp is the EPOCH date I pulled form the live data! ANGULARJS1 for (i = 0; […]

By NightOwl
Published
Categorized as angularjs, duplicates, epoch, indexof, javascript Tagged , , , ,

ng-repeat duplicated on item change

I have an angular application with sets of array items “array_var”. When I push new sets of array to array_var, I noticed that the ng-repeat in my html creates a duplicate ng-repeat. everytime I push new array to the array_var there is also another duplicate ng-repeat created. Sample ng-repeat: <div ng-repeat=”d in icons track by […]

By Laravel14
Published
Categorized as javascript Tagged , ,

angularjs div’s duplicating. every next button controls a corresponding div

I have such a simplified markup which appends and fills in every next row by surname and name; also by clicking the “List” button I need to fill in additional data about this person in a new popup div and save all information into LocalStorage. The problem is when I click on different “List” buttons […]

By Vladyslav Plakhuta
Published
Categorized as html, html-table Tagged , ,

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