Download pool/shard010/JavaScript/0062746_controller.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/JavaScript/0062746_controller.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard010/JavaScript/0062746_controller.js
-
curl -L -o 0062746_controller.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/JavaScript/0062746_controller.js
1.02 kB
| ; | |
| parkingfriendsApp.controller('ParkPlaceController', ['$scope', 'resolvedParkPlace', 'ParkPlace', | |
| function ($scope, resolvedParkPlace, ParkPlace) { | |
| $scope.parkplaces = resolvedParkPlace; | |
| $scope.create = function () { | |
| ParkPlace.save($scope.parkplace, | |
| function () { | |
| $scope.parkplaces = ParkPlace.query(); | |
| $('#saveParkPlaceModal').modal('hide'); | |
| $scope.clear(); | |
| }); | |
| }; | |
| $scope.update = function (id) { | |
| $scope.parkplace = ParkPlace.get({id: id}); | |
| $('#saveParkPlaceModal').modal('show'); | |
| }; | |
| $scope.delete = function (id) { | |
| ParkPlace.delete({id: id}, | |
| function () { | |
| $scope.parkplaces = ParkPlace.query(); | |
| }); | |
| }; | |
| $scope.clear = function () { | |
| $scope.parkplace = {id: "", sampleTextAttribute: "", sampleDateAttribute: ""}; | |
| }; | |
| }]); | |