Commit 159d0f54109bb76dc9d0e25312fb99d035ef844c
1 parent
b41ea1a414
Exists in
master
levantar sitio con gulp
Showing
4 changed files
with
36 additions
and
2 deletions
Show diff stats
gulpfile.js
| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | +const gulp = require('gulp'); | |
| 2 | +const pump = require('pump'); | |
| 3 | +const connect = require('gulp-connect'); | |
| 4 | + | |
| 5 | + | |
| 6 | +gulp.task('webserver', function() { | |
| 7 | + return pump [ | |
| 8 | + connect.server( | |
| 9 | + { | |
| 10 | + port: 8087, | |
| 11 | + host: '0.0.0.0', | |
| 12 | + livereload: true | |
| 13 | + } | |
| 14 | + ) | |
| 15 | + ] | |
| 16 | +}); | |
| 17 | + | |
| 18 | +gulp.task('default', ['webserver']); |
package.json
src/js/controller.js
src/views/main.html
| ... | ... | @@ -54,13 +54,19 @@ |
| 54 | 54 | <th>Nombre Empresa</th> |
| 55 | 55 | <th>ID Empresa</th> |
| 56 | 56 | <th>Url</th> |
| 57 | + <th></th> | |
| 57 | 58 | </tr> |
| 58 | 59 | </thead> |
| 59 | 60 | <tbody> |
| 60 | - <tr ng-repeat="empresa in empresas"> | |
| 61 | + <tr ng-repeat="(key, empresa) in empresas"> | |
| 61 | 62 | <td ng-bind="empresa.nombre"></td> |
| 62 | 63 | <td ng-bind="empresa.idEmpresaCliente"></td> |
| 63 | 64 | <td ng-bind="empresa.url"></td> |
| 65 | + <td> | |
| 66 | + <!-- <button class="btn btn-dark" ng-click="eliminarEmpresa(key)"> | |
| 67 | + <i class="fa fa-trash"></i> | |
| 68 | + </button> --> | |
| 69 | + </td> | |
| 64 | 70 | </tr> |
| 65 | 71 | </tbody> |
| 66 | 72 | </table> |