Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mamarley
Copy link

@mamarley mamarley commented Mar 1, 2022

$scope.$watch() only works on single expressions, not arrays.
Instead, use $scope.$watchGroup(). As this functionality was
introduced in Angular.js 1.3, also bump the minimum dependency and
the version used in the demo to that version. This was found over
in https://github.com/nebulous/infinitude and was causing the dial
to display incorrectly when using an expression for scaleMax that
wasn't ready when the dial was first drawn.

$scope.$watch() only works on single expressions, not arrays.
Instead, use $scope.$watchGroup().  As this functionality was
introduced in Angular.js 1.3, also bump the minimum dependency and
the version used in the demo to that version.  This was found over
in https://github.com/nebulous/infinitude and was causing the dial
to display incorrectly when using an expression for scaleMax that
wasn't ready when the dial was first drawn.
mamarley added a commit to mamarley/infinitude that referenced this pull request Mar 1, 2022
-Upgrade angular.js and related libraries to 1.8.2
 -Switch to new API for $http response
 -Stop using the "!" hash prefix
-Drop json3 (no remotely-modern browsers need this anymore)
-Drop es5-shim (no remotely-modern browsers need this anymore)
-Upgrade jquery to 3.6.0
-Upgrade bootstrap to 3.4.1
 -Add override for bootstrap.css since it was removed from bootstrap's bower.json
 -Upgrade bundled glyphicons-halflings to match bootstrap version
-Upgrade c3 to 0.7.20
-Upgrade angular-timeago to 0.4.6
-Drop ng-knob (unused)
-Upgrade angular-chart.js to 1.1.1

ngTimepicker claims to be incompatible with angular.js above 1.4.x,
but my testing reveals that it works fine, at least in this
application.

This also cherry-picks cdjackson/angular-dialgauge#12
(which fixes nebulous#24) and
cdjackson/angular-dialgauge#11 (which fixes
an issue introduced by nebulous@6dd47b6
where the scaleMax value for the CFM dial would sometimes not be
set correctly on page load, resulting in no bar being displayed.
mamarley added a commit to mamarley/infinitude that referenced this pull request Mar 1, 2022
-Upgrade angular.js and related libraries to 1.8.2
 -Switch to new API for $http response
 -Stop using the "!" hash prefix
 -Fix controllers getting loaded multiple times by loading MainCtrl once for the entire body and not loading controllers in app.js
-Drop json3 (no remotely-modern browsers need this anymore)
-Drop es5-shim (no remotely-modern browsers need this anymore)
-Upgrade jquery to 3.6.0
-Upgrade bootstrap to 3.4.1
 -Add override for bootstrap.css since it was removed from bootstrap's bower.json
 -Upgrade bundled glyphicons-halflings to match bootstrap version
-Upgrade c3 to 0.7.20
-Upgrade angular-timeago to 0.4.6
-Drop ng-knob (unused)
-Upgrade angular-chart.js to 1.1.1

ngTimepicker claims to be incompatible with angular.js above 1.4.x,
but my testing reveals that it works fine, at least in this
application.

This also cherry-picks cdjackson/angular-dialgauge#12
(which fixes nebulous#24) and
cdjackson/angular-dialgauge#11 (which fixes
an issue introduced by nebulous@6dd47b6
where the scaleMax value for the CFM dial would sometimes not be
set correctly on page load, resulting in no bar being displayed.
nebulous pushed a commit to nebulous/infinitude that referenced this pull request Mar 5, 2022
-Upgrade angular.js and related libraries to 1.8.2
 -Switch to new API for $http response
 -Stop using the "!" hash prefix
 -Fix controllers getting loaded multiple times by loading MainCtrl once for the entire body and not loading controllers in app.js
-Drop json3 (no remotely-modern browsers need this anymore)
-Drop es5-shim (no remotely-modern browsers need this anymore)
-Upgrade jquery to 3.6.0
-Upgrade bootstrap to 3.4.1
 -Add override for bootstrap.css since it was removed from bootstrap's bower.json
 -Upgrade bundled glyphicons-halflings to match bootstrap version
-Upgrade c3 to 0.7.20
-Upgrade angular-timeago to 0.4.6
-Drop ng-knob (unused)
-Upgrade angular-chart.js to 1.1.1

ngTimepicker claims to be incompatible with angular.js above 1.4.x,
but my testing reveals that it works fine, at least in this
application.

This also cherry-picks cdjackson/angular-dialgauge#12
(which fixes #24) and
cdjackson/angular-dialgauge#11 (which fixes
an issue introduced by 6dd47b6
where the scaleMax value for the CFM dial would sometimes not be
set correctly on page load, resulting in no bar being displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant