설명 없음

forma.js 572B

12345678910111213141516171819
  1. var forma = angular.module('forma', []);
  2. // Define the `PhoneListController` controller on the `phonecatApp` module
  3. forma.controller('FormController', function FormController($http, $scope, accion, tipo, id) {
  4. console.log(accion +","+ tipo +","+ id);
  5. var url = '/formaDatos/'+accion+'/'+tipo+'/'
  6. if(id!="none")
  7. {
  8. url+= id;
  9. }
  10. $http.get(url).then(function(response) {
  11. $scope.entradas = response.data.entradas;
  12. $scope.titulo = response.data.titulo;
  13. $scope.accion = response.data.accion;
  14. console.log(response.data);
  15. });
  16. });