Skip to content

Instantly share code, notes, and snippets.


Ken Miyamoto miyamotodev123

View GitHub Profile

Keybase proof

I hereby claim:

  • I am miyamotodev123 on github.
  • I am kmiyamoto ( on keybase.
  • I have a public key ASC_hAj0SX345Rd46nryGey7Ddjc-n7SzcM3TSGthUfPuQo

To claim this, I am signing this object:

View auth_set_up_and_testing.views.login2.html
<div class="col-sm-6 col-sm-offset-3">
<h1><span class="fa fa-sign-in"></span> Login</h1>
<div growl></div>
<!-- LOGIN FORM -->
<form ng-submit="login.login()" ng-controller="LoginControllerTwo as login">
<div class="form-group">
View auth_set_up_and_testing.js.controllers.login3.js
(function() {
// injected 'growl' as a dependency to be used by the LoginController
.controller('LoginController', ['$location', 'AuthService', 'growl',
function($location, AuthService, growl) {
var vm = this;
vm.login = function() {
var login_data = {
View auth_set_up_and_testing.js.app2.js
// defining our angular app, the first arguement is the name of our application
// second argument is an array that loads the dependencies into the application
(function() {
angular.module('app', ['ngRoute', 'angular-growl']);
View auth_set_up_and_testing.lib.growl.js
(function() {
* angular-growl - v0.4.0 - 2013-11-19
* Copyright (c) 2013 Marco Rinck; Licensed MIT
angular.module('angular-growl', []);
angular.module('angular-growl').directive('growl', [
function ($rootScope) {
View auth_set_up_and_testing.views.index2.html
<!doctype html>
<html ng-app="app">
<title>Node Authentication</title>
<link rel="stylesheet" href="//">
<link rel="stylesheet" href="//">
<script src=""></script>
<script src=""></script>
<script src="lib/growl.js"></script>
View auth_set_up_and_testing.js.factories.authentication.service.js
(function() {
.factory('AuthService', ['$http',
function($http) {
var AuthService = {};
AuthService.login = function(data) {
return $'/login', data)
View auth_set_up_and_testing.js.controllers.login2.js
(function() {
.controller('LoginController', ['$location', 'AuthService',
function($location, AuthService) {
var vm = this;
vm.login = function() {
var login_data = {
password: vm.password
View auth_set_up_and_testing.js.directives.logout.directive.js
.directive('logout', ['$http', function($http) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.on('click', function(e) {
View auth_set_up_and_testing.js.controllers.profile.client.controller.js
(function() {
.controller('ProfileController', ['$http', '$scope', '$location',
function($http, $scope, $location) {
.success(function(response) {
console.log('user data success')
$scope.user = response; //Expose the user data to your angular scope
You can’t perform that action at this time.