Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felquis/load-ionic
Load diferent versions of Ionic in the browser while debuging
https://github.com/felquis/load-ionic
Last synced: 15 days ago
JSON representation
Load diferent versions of Ionic in the browser while debuging
- Host: GitHub
- URL: https://github.com/felquis/load-ionic
- Owner: felquis
- License: mit
- Created: 2015-06-22T15:21:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-23T23:51:50.000Z (over 9 years ago)
- Last Synced: 2024-12-06T13:07:28.681Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Load Ionic
Load diferent versions of Ionic in the browser while debuging
> [Inspiration](http://bocoup.com/weblog/easily-test-jquery-pre-release-versions/)Instalation
```sh
bower install --save load-ionic
```Put it in your main HTML exactly where you put your ionic files today
```html// Make sure Ionic was loaded
if (!window.ionic) {
document.write('<script src="lib/ionic/js/ionic.bundle.js"><\/script>');
console.log('Ionic not loaded properly, loading local copy');
}```
It'll load ionic `ionic.bundle.js`
Use param `ionic` in your URL:
> localhost:8100/?ionic=1.0.0It will load ionic 1.0.0 [from CDN](http://code.ionicframework.com/#)
## .
Please send issues and pull request## Contribute
Rember to run `npm install` and use `npm run test` to make sure everything is okay.