mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-02-04 13:16:08 +08:00
0db02f0633a758df397fab834ee1f2ed4e97e93b
Building & Running
** WARNING: This is a temporary hack **
- At the root of your
ionic2directory/repo, run:gulp update.angular. This will get the latest version of Angular2 master and install it as a sibling directory../angular-ionicto wherever yourionic2directory is. (It'll take a while to npm install angular2, so go grab a beer). - In the
ionic2working directory, rungulp watch. This will copy ionic2 components and test files to the correct angular directories as you're developing. - In another terminal,
cdinto the../angular-ionicdirectory, 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
@Decoratoris now just@Directive- Components must use an element selector
NgElementis no longer a thing, it's nowElementRef. Stuff needs to be fixed.- All
main.jstest files were renamed toindex.jsto work with angular's build - imports that are relative paths should start with
./. For example, instead ofpath/moduleit should be./path/module Component,DirectiveandViewshould 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.5 GiB
Languages
TypeScript
60.7%
HTML
25.2%
SCSS
10.7%
JavaScript
1.9%
Vue
1%
Other
0.5%