Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.16 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.16 KB

angular-hybrid-webpack

This sandbox for showing possibility "hybrid approach", migration from AngularJs to Angular

Hybrid app, all Angular modules there are in folders which are named in kebab case, appropriately AngularJs modules are named in lowerCamelCase

List of features

  • Ran hybrid angularJs and Angular using ngUpgrade library
  • Implemented @uirouter/angular-hybrid router
  • Downgrade Angular ahw-accounts-dashboard Components and run in AngularJS Code
  • Injected AngularJS AhwRootScopeShared service to Angular
  • Made AOT compilation for hybrid app
  • etc.

Getting started

Install JSON Server

npm install -g json-server

Start JSON Server

json-server --watch ./db/db.accounts.json

Routes

Based on the previous ./db/db.accounts.json file, here are all the default routes. You can also add other routes using --routes.

Plural routes

GET    /accounts
GET    /accounts/1
POST   /accounts
PUT    /accounts/1
PATCH  /accounts/1
DELETE /accounts/1

Singular routes

GET    /accounts
POST   /accounts
PUT    /accounts
PATCH  /accounts

Run angular-hybrid-webpack

npm run dev