feat(demo): load ionic/core

This commit is contained in:
Ken Sodemann
2017-11-14 22:05:55 -06:00
parent 44025c8c8f
commit 98302fe938
3 changed files with 9 additions and 12 deletions

View File

@ -9,7 +9,8 @@
"outDir": "dist", "outDir": "dist",
"assets": [ "assets": [
"assets", "assets",
"favicon.ico" "favicon.ico",
{ "glob": "**/*", "input": "../../../core/dist", "output": "./ionic/core" }
], ],
"index": "index.html", "index": "index.html",
"main": "main.ts", "main": "main.ts",

View File

@ -1,19 +1,14 @@
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
@NgModule({ @NgModule({
declarations: [ declarations: [AppComponent],
AppComponent imports: [AppRoutingModule, BrowserModule],
],
imports: [
AppRoutingModule,
BrowserModule
],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}) })
export class AppModule { } export class AppModule {}

View File

@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="ionic/core/ionic.js"></script>
</head> </head>
<body> <body>
<app-root></app-root> <app-root></app-root>