ionic-framework

An advanced HTML5 mobile app framework built on Angular2

Usage no npm install needed!

<script type="module">
  import ionicFramework from 'https://cdn.skypack.dev/ionic-framework';
</script>

README

Ionic Framework 2.x

The official npm package for Ionic 2, complete with pre-built ES5 bundles, TypeScript definitions, Sass files, module-ready ES5 files, and more.

To get started with Ionic 2, please read the Installation guide.

Source files

In the root of the package are ES5 sources in the CommonJS module format, their associated Typescript type definition files, and the Ionic Sass entry files. The Javascript sources are meant to be used by a bundler such as Webpack, SystemJS Builder, or Browserify. The type definitions provide support to Typescript tooling for things like type checking and code completion.

Usually, the only Javascript file required by the user is ionic.js, as everything from Ionic can be imported from this file:

  import {App, Page} from 'ionic-framework/ionic';

Bundles

Minified and unminified CommonJS and System.register module format bundles, as well as compiled CSS stylesheets for both Ionic iOS and Material Design are located bundles/. These can also be used with bundlers to a certain extent, for example, using Webpack's externals option. The SystemJS bundle is primarily meant to be included in a <script> tag for demos, tests and Javascript playgrounds like Plunker.

Installation and More

To use Ionic 2, we recommend installing and utilizing the Ionic CLI which will help you create pre-configured Ionic apps.

For full instructions on using Ionic 2, please visit the Ionic 2 Documentation