$rootScope resets on navigation Angular 11 – AngularJS Hybrid

I am gradually migrating a rather large AngularJS app to Angular 11. Until now I have successfully re-written the sign-in / sign-up pages in Angular 11 and the AngularJS app is lazy loaded after …

Mdbootstrap V5 input borders don’t appear when used in AngularJS pages (other than layout)

I’m trying to redesign some of the forms in an AngularJS application using mdbootstrap version 5. I’ve encountered a problem with inputs. The inputs that are inside pages of the dashboard (the app is …

document.querySelector() is not applying style

Could someone point my mistake here ?

This is dummy content

angular.module(“app”, []) .controller(“demo”, …

Javascript/Angular: Where to put small helper functions

I’m working on an angular app, which I kind of inherited. I saw that there was a bug with unescaped regex so I wanted to add a function for escaping regex like so: function escapeRegExp(string) { …

AngularJS – Display the list of data based on the selected value

Any help appreciated. I have a JSON data with format like this { state1: [ member1, member2], state2: [ member,member4…], … } And there is a dropdown which shows the list of states on the JSON …

Copy and Paste Table Using ContentEditable

This video is a good representation of the issue I am facing: https://drive.google.com/file/d/1jN44lUpnbVDv_m3LuPhlJl6RFUu884jz/view. I cannot copy and paste a table from another a tab without it …

Angular JS splice function not removing existing field in array

I am trying to use the splice() function in Angular JS. I have a dropdown from which users can select an item. The selected item has a field and a value which gets parsed into the array ‘criteria’. …

What is a good way to pass many parameters to controller?

I have an application on Java (Spring framework) and Javascript (AngularJs framework). There are list of objects in the table and two text fields for filtering this objects. Filtering happens on the …

Separate Sort by table heading for different tables

In the following codepen I’m trying to sort by the column headers independently on two different tables. However, when I sort on any of the two tables it also sorts the columns of the other table. I tried creating a separate sort function called sortByB and using that on one of the tables but it still sorts the other table. Thank you. JS Answer Look at this code: The orderBy:sortField:reverseOrder part controls the sorting. Right now, sortField and reverseOrder are shared between your two tables. You would need two sortField and two reverseOrder variables if you want different sorting settings

Rangy selection not working on Microsoft Edge

The below code snippet is working well for all browsers except Microsoft Edge. $rootScope.highlights = $window.rangy.createHighlighter(); $rootScope.highlights.addClassApplier($window.rangy….