Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.uploadFile = function (file) {
- console.log("IIINNNNNNN");
- console.log('file is ');
- console.dir(file);
- console.log('function parse json');
- console.log(readFileToJSON(file));
- var json = readFileToJSON(file);
- this.close();
- console.log("json fine below");
- console.log(json);
- if (json) {
- $modal.open({
- "templateUrl": "components/modals/warningModal/warning-import-json-modal.html",
- "controller": "WarningImportJSONController",
- "controllerAs": "WarningImportCtrl",
- resolve: {
- onOk: function () {
- return function () {
- return self.saveJSON(json);
- }
- }
- }
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement