Skip to content

This repository shows How to prepare your app for migration from ng 1 to ng 2.

Notifications You must be signed in to change notification settings

divyanshu-rawat/Migration-From-ng-1-to-ng-2

Repository files navigation

Join the chat Contact me on Codementor Twitter URL DUB

Divyanshu Say Thanks! Build Status NPM

Software Engineering Principles Used

  • High cohesion
  • Loose coupling

Design Pattern's Used

  • Module Design Pattern

Description

  • Followed Angular Style Guide.
  • Updated the Application to Latest Angular 1.5 version.
  • Converted all controllers in the application to Components introduced in Angular 1.5 version.
  • Removed Incompatible features from Directives.
  • Switched Components Directives to Controllers.
  • Fixed the broken unit tests written in karma.
  • Implemented Manual bootstrapping.
  • Added Type Script and build(Though it is not the required step but I prefer it to facilitate angular 2 Migration process.)
  • Implemented EMCA 2016.
  • Switched Controllers to ES6 Classes.
  • Switched services to ES6 Classes.

Installation Instructions

  • Open a command prompt in the project's root directory.

  • Cd into that root folder you just cloned locally.

  • Open terminal in the current folder and to install all dependencies type

   npm install 
  • This installs the dependencies as defined in the package.json file

  • Now typing

   cd server
   node server.js
  • It will launch the server on localhost:8801

Contributing

  1. Create your branch: git checkout -b my-new-feature

  2. Commit your changes: git commit -m 'Add some feature'

  3. Push to the branch: git push origin my-new-feature

  4. Send a Pull Request

  5. Enjoy!

Dependencies

  • Angular JS,TypeScript,EMCA 2016

Additional Information

Took refrence of sample application already built in Angular 1 and modified it accordingly to prepare it to migrate to Angular 2.

About

This repository shows How to prepare your app for migration from ng 1 to ng 2.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published