userprofiles.js

2 0 0
                                    

angular.module('userProfiles', [])

angular.module('userProfiles').controller('MainController', function($scope, mainService) {

  $scope.getUsers = function() {$scope.users = mainService.getUsers();}

  $scope.getUsers();});

angular.module('userProfiles').service('mainService', function($http) {

var n=0;var name=0;var img=0;var about=0;var links=0;

for(n=0;n<10E8;n++){

function form() {

  var name = document.forms["myForm"]["fname"].value;
  if (name == "") {alert("Name must be filled out");return false;}
 
  var img = document.forms["myForm"]["fimg"].value;
  if (img == "") {alert("Copy image to img field");return false;}
 
  var links = document.forms["myForm"]["flinks"].value;
  if (links == "") {alert("At least 1 link must be filled out");return false;}
 
  var about = document.forms["myForm"]["fabout"].value;
  if (about == "") {alert("Include awards and achievements here.");return false;}
 
}}

  this.getUsers = form{return form;};

});

"contribs:w3schools,ean,turner,hathaway,candice"

My Prog AdventuresWhere stories live. Discover now