mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Building & Running
** WARNING: This is a temporary hack **
- At the root of your
ionic2
directory/repo, run:gulp update.angular
. This will get the latest version of Angular2 master and install it as a sibling directory../angular-ionic
to wherever yourionic2
directory is. (It'll take a while to npm install angular2, so go grab a beer). - In the
ionic2
working directory, rungulp watch
. This will copy ionic2 components and test files to the correct angular directories as you're developing. - In another terminal,
cd
into the../angular-ionic
directory, and rungulp serve.js.dev
. This will build out ionic examples too. - Go to http://localhost:8000/examples/src/ionic/
- Stay cool
** WARNING: This is a temporary hack **
Things you'll probably need to fix
@Decorator
is now just@Directive
- Components must use an element selector
NgElement
is no longer a thing, it's nowElementRef
. Stuff needs to be fixed.- All
main.js
test files were renamed toindex.js
to work with angular's build - imports that are relative paths should start with
./
. For example, instead ofpath/module
it should be./path/module
Component
,Directive
andView
should NOT be imported fromangular2/angular2
. You'll probably get "No Directive annotation found on Content" when the wrong import is referenced.- Import those instead from:
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
Description
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
angularcapacitorframeworkfrontendioniciosjavascriptmaterial-designmobilepwareactstencilstenciljstypescriptvuewebwebcomponents
Readme
MIT
2.4 GiB
Languages
TypeScript
60.8%
HTML
24.8%
SCSS
11%
JavaScript
2%
Vue
0.9%
Other
0.5%