sajaniemi_variable_dataset_large / pool /shard008 /JavaScript /0050223_weather-energy-delete-dialog.controller.js
Download pool/shard008/JavaScript/0050223_weather-energy-delete-dialog.controller.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/JavaScript/0050223_weather-energy-delete-dialog.controller.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard008/JavaScript/0050223_weather-energy-delete-dialog.controller.js
-
curl -L -o 0050223_weather-energy-delete-dialog.controller.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/JavaScript/0050223_weather-energy-delete-dialog.controller.js
778 Bytes
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('weatheropendataApp') | |
| .controller('WeatherEnergyDeleteController',WeatherEnergyDeleteController); | |
| WeatherEnergyDeleteController.$inject = ['$uibModalInstance', 'entity', 'WeatherEnergy']; | |
| function WeatherEnergyDeleteController($uibModalInstance, entity, WeatherEnergy) { | |
| var vm = this; | |
| vm.weatherEnergy = entity; | |
| vm.clear = clear; | |
| vm.confirmDelete = confirmDelete; | |
| function clear () { | |
| $uibModalInstance.dismiss('cancel'); | |
| } | |
| function confirmDelete (id) { | |
| WeatherEnergy.delete({id: id}, | |
| function () { | |
| $uibModalInstance.close(true); | |
| }); | |
| } | |
| } | |
| })(); | |