Tag: angularjs controller

AngularJS – 工厂未定义?

我试图将一个工厂注入控制器。 工厂是为了pipe理authentication事件。 这是一些代码: 'use strict'; /** * @ngdoc function * @name LoginCtrl * @module triAngularAuthentication * @kind function * * @description * * Handles login form submission and response */ angular.module('triAngularAuthentication') .factory('Auth', ['$http', 'localStorageService', function ($http, localStorageService, API_REST) { function urlBase64Decode(str) { var output = str.replace('-', '+').replace('_', '/'); switch (output.length % 4) { case 0: […]