new updaterButtonCtrl($scope, updaterService, $location)
Controller for an update Button.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$scope |
service
|
Local controller scope |
updaterService |
service
|
Updater Service |
$location |
service
|
Location service |
Example
<li ng-controller="updateButtonCtrl" ng-show="updateAvailable">
<button type="button"
ng-click="updateDialog()"
class="btn btn-info navbar-btn"
ng-show="updateAvailable">
Update Available
</button>
</li>
Methods
(static) restartUpdate()
Restart and update when the button is pressed
- Source:
(private, static) setUpdate()
Function called when update is detected
- Source: