ソースを参照

Remove more code

Matt Raible 7 年 前
コミット
12b5e9343d
共有1 個のファイルを変更した1 個の追加35 個の削除を含む
  1. 1
    35
      DEMO.md

+ 1
- 35
DEMO.md ファイルの表示

@@ -53,41 +53,7 @@ Install [Ionic pages for Stormpath](https://github.com/stormpath/stormpath-sdk-a
53 53
 yarn add angular-stormpath-ionic
54 54
 ```
55 55
 
56
-Modify `src/app/app.module.ts` to define a `stormpathConfig` function that configures the `endpointPrefix` to point to `http://localhost:8080`. Import `StormpathModule`, `StormpathIonicModule`, and override the provider of `StormpathConfiguration`. You’ll also need to append Stormpath's pre-built Ionic pages to `entryComponents`.
57
-
58
-→ **stormpath-config**
59
-
60
-```typescript
61
-import { StormpathConfiguration, StormpathModule } from 'angular-stormpath';
62
-import { StormpathIonicModule, LoginPage, ForgotPasswordPage, RegisterPage } from 'angular-stormpath-ionic';
63
-
64
-export function stormpathConfig(): StormpathConfiguration {
65
-  let spConfig: StormpathConfiguration = new StormpathConfiguration();
66
-  spConfig.endpointPrefix = 'http://localhost:8080';
67
-  return spConfig;
68
-}
69
-
70
-@NgModule({
71
-  ...
72
-  imports: [
73
-    IonicModule.forRoot(MyApp),
74
-    StormpathModule,
75
-    StormpathIonicModule
76
-  ],
77
-  bootstrap: [IonicApp],
78
-  entryComponents: [
79
-    ...
80
-    LoginPage,
81
-    ForgotPasswordPage,
82
-    RegisterPage
83
-  ],
84
-  providers: [
85
-    {provide: ErrorHandler, useClass: IonicErrorHandler},
86
-    {provide: StormpathConfiguration, useFactory: stormpathConfig}
87
-  ]
88
-})
89
-export class AppModule {}
90
-```
56
+Modify `src/app/app.module.ts` to define a `stormpathConfig` function that configures the `endpointPrefix` to point to `http://localhost:8080`. Import `StormpathModule`, `StormpathIonicModule`, and override the provider of `StormpathConfiguration`. You’ll also need to append Stormpath's pre-built Ionic pages to `entryComponents`. → **stormpath-config**
91 57
 
92 58
 To render a login page before users can view the application, modify `src/app/app.component.ts` to use the `Stormpath` service and navigate to Stormpath's `LoginPage` if the user is not authenticated. → **io-app**
93 59