Download pool/shard007/JavaScript/0044033_main.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/JavaScript/0044033_main.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard007/JavaScript/0044033_main.js
-
curl -L -o 0044033_main.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/JavaScript/0044033_main.js
1.03 kB
| import angular from 'angular'; | |
| // angular modules | |
| import constants from './constants'; | |
| import onConfig from './on_config'; | |
| import onRun from './on_run'; | |
| import 'angular-ui-router'; | |
| import 'angular-material'; | |
| import './templates'; | |
| import './filters'; | |
| import './controllers'; | |
| import './services'; | |
| import './directives'; | |
| // create and bootstrap application | |
| const requires = [ | |
| 'ui.router', | |
| 'ngMaterial', | |
| 'templates', | |
| 'app.filters', | |
| 'app.controllers', | |
| 'app.services', | |
| 'app.directives' | |
| ]; | |
| // mount on window for testing | |
| window.app = angular.module('app', requires); | |
| window.app.controller('mainCtrl', ['$scope', '$timeout', function($scope, $timeout){ | |
| this.name = 'mainCtrl'; | |
| console.log('in mainCtrl'); | |
| function tick(){ | |
| $scope.time = new Date(); | |
| $timeout(tick, 1000); | |
| } | |
| tick(); | |
| }]); | |
| angular.module('app').constant('AppSettings', constants); | |
| angular.module('app').config(onConfig); | |
| angular.module('app').run(onRun); | |
| angular.bootstrap(document, ['app'], { | |
| strictDi: true | |
| }); | |