From 26281a7a26ed5616e14361af6c9c546ef0f73117 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Wed, 28 Sep 2016 15:39:06 -0500 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 112 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 66 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8419c0d2e4..b169984361 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -321,7 +321,17 @@ Note: For details on NgModules you can read the Angular docs on them [here](http #### Copying Your Project to a New Project -1. Install the latest Ionic CLI: +1. Ensure that you're using `npm 3` + +``` +npm --version +``` + +If not running 3, the easiest way to update is to install the [latest version of Node.js](https://nodejs.org/en/). + +`npm` can also be updated by follow [these instructions](https://docs.npmjs.com/getting-started/installing-node#updating-npm). We recommend just updating Node, though. + +2. Install the latest Ionic CLI: ``` npm install -g ionic @@ -329,106 +339,116 @@ npm install -g ionic Note: if you have installed the beta cli you should run `npm uninstall -g ionic` first. -2. Create a new Ionic 2 RC0 app: +3. Create a new Ionic 2 RC0 app: ``` ionic start --v2 myApp ``` -3. Copy/paste all of your pages from `app/pages/` of your beta.11 app to `src/pages/`, providers from `app/providers` to `src/providers` pipes from `app/pipes` to `src/pipes` and any custom components to `src/components` in the new RC0 app. +4. Copy/paste all of your pages from `app/pages/` of your beta.11 app to `src/pages/`, providers from `app/providers` to `src/providers` pipes from `app/pipes` to `src/pipes` and any custom components to `src/components` in the new RC0 app. -4. Modify all `templateUrl`'s to be relative to the `.ts` file. For example in `app.component.ts` the url should change from `build/app.html` to `app.html` and in a page referencing `about.html` from `build/pages/about/about.html` to `about.html`. +5. Modify all `templateUrl`'s to be relative to the `.ts` file. For example in `app.component.ts` the url should change from `build/app.html` to `app.html` and in a page referencing `about.html` from `build/pages/about/about.html` to `about.html`. -5. Import and add each of your pages to the `declarations` array and the `entryComponents` array in `src/app/app.module.ts. +6. Import and add each of your pages to the `declarations` array and the `entryComponents` array in `src/app/app.module.ts. -6. Import and add each of your custom components to the `declarations` array in `src/app/app.module.ts`. +7. Import and add each of your custom components to the `declarations` array in `src/app/app.module.ts`. -7. Import and add each of your providers to the `providers` array in `src/app/app.module.ts`. +8. Import and add each of your providers to the `providers` array in `src/app/app.module.ts`. -8. Remove any use of the `providers` entry in `@Component` from your pages. +9. Remove any use of the `providers` entry in `@Component` from your pages. -9. Change any uses of the `private` TypeScript keyword to `public`. +10. Change any uses of the `private` TypeScript keyword to `public`. -10. Change `