Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(localStorage.users) {
- $scope.users = JSON.parse(localStorage.users);
- } else {
- $scope.users = {
- "user": [
- {
- "uid" : 0,
- "firstName" : "Andrei",
- "lastName" : "Horodinca",
- "emailAddress" : "ah@kirkeweb.dk",
- "password" : "lalala",
- "loggedIn" : false,
- "isAdmin" : false,
- "profileInfo" : true,
- "birthday" : "28/09/1993",
- "location" : "Copenhagen, Denmark",
- "bio" : "Lorem ipsum dolor sit amet."
- }
- ]
- };
- localStorage.setItem("users", JSON.stringify($scope.users));
- }
- if(typeof $routeParams.uid == "undefined") {
- $scope.users.user.uid = -1;
- }
- else {
- $scope.users.user.uid = $routeParams.uid;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement