Commit 64ecebdaf27b5cb62ec8903078f7ddfc83a80e9d
1 parent
f919730f2c
Exists in
master
correccion inyecciones
Showing
4 changed files
with
2 additions
and
64 deletions
Show diff stats
gulpfile.js
... | ... | @@ -40,7 +40,6 @@ gulp.task('uglify', ['templates'], function() { |
40 | 40 | ]), |
41 | 41 | concat('foca-modal-detalles.js'), |
42 | 42 | replace('src/views/', ''), |
43 | - replace("['ui.bootstrap', 'focaDirectivas']", '[]'), | |
44 | 43 | gulp.dest(paths.tmp), |
45 | 44 | rename('foca-modal-detalles.min.js'), |
46 | 45 | uglify(), |
index.html
... | ... | @@ -1,61 +0,0 @@ |
1 | -<html ng-app="focaModalCheque"> | |
2 | - <head> | |
3 | - <meta charset="UTF-8"/> | |
4 | - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
5 | - | |
6 | - <!--CSS--> | |
7 | - <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> | |
8 | - <link href="node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet"/> | |
9 | - | |
10 | - <!--VENDOR JS--> | |
11 | - <script src="node_modules/jquery/dist/jquery.min.js"></script> | |
12 | - <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script> | |
13 | - <script src="node_modules/angular/angular.min.js"></script> | |
14 | - <script src="node_modules/ui-bootstrap4/dist/ui-bootstrap-tpls.js"></script> | |
15 | - <script src="node_modules/foca-directivas/dist/foca-directivas.min.js"></script> | |
16 | - | |
17 | - <!-- BUILD --> | |
18 | - <script src="src/js/app.js"></script> | |
19 | - <script src="src/js/controller.js"></script> | |
20 | - <script src="src/js/service.js"></script> | |
21 | - | |
22 | - <!-- /BUILD --> | |
23 | - | |
24 | - <!-- CONFIG PARA DEVELOP --> | |
25 | - <script src="src/etc/develop.js"></script> | |
26 | - <script type="text/javascript"> | |
27 | - angular.module('focaModalCheque') | |
28 | - .controller('controller', [ | |
29 | - '$scope', | |
30 | - '$uibModal', | |
31 | - '$timeout', | |
32 | - function($scope, $uibModal, $timeout) { | |
33 | - openModal(); | |
34 | - | |
35 | - function openModal() { | |
36 | - var modalInstance = $uibModal.open( | |
37 | - { | |
38 | - ariaLabelledBy: 'Busqueda de Precio Condicion', | |
39 | - templateUrl: 'src/views/modal-cheque.html', | |
40 | - controller: 'focaModalFleteController', | |
41 | - size: 'lg' | |
42 | - } | |
43 | - ); | |
44 | - | |
45 | - modalInstance.result.then( | |
46 | - function (selectedItem) { | |
47 | - console.info(selectedItem); | |
48 | - $timeout(openModal, 500); | |
49 | - }, function () { | |
50 | - console.info('modal-component dismissed at: ' + new Date()); | |
51 | - $timeout(openModal, 500); | |
52 | - } | |
53 | - ); | |
54 | - } | |
55 | - } | |
56 | - ]); | |
57 | - </script> | |
58 | - </head> | |
59 | - <body ng-controller="controller"> | |
60 | - </body> | |
61 | -</html> |
src/etc/develop.js.ejemplo
src/js/app.js