小编Ian*_*ono的帖子

离子无法找到模块'../providers/auth-service/auth-service'

我试图在离子角3.3.0中创建Login/SignUp.我收到错误找不到模块'../providers/auth-service/auth-service'.在login.ts文件中.请帮忙!

AUTH-service.ts

       import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map';

/*
  Generated class for the AuthServiceProvider provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
export class User {
  name: string;
  email: string;

  constructor(name: string, email: string) {
    this.name = name;
    this.email = email;
  }
}
@Injectable()
export class AuthServiceProvider {
  currentUser: User;
  public login(credentials) {
    if (credentials.email === null || credentials.password === null) {
      return …
Run Code Online (Sandbox Code Playgroud)

authentication ionic-framework ionic2 ionic3 angular

4
推荐指数
1
解决办法
7264
查看次数