Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many changes, fixes etc #26

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ There is as well a filter to format a number in either international or national
## Getting Started
1. Install the requirements
```bash
bower install https://github.com/pierre-vigier/intlpnIonic.git#0.1.12 --save
bower install https://github.com/pierre-vigier/intlpnIonic.git --save
```

2. Link the stylesheet
```html
<link rel="stylesheet" href="path/to/intlpn.css">
<link rel="stylesheet" href="path/to/ionic-filter-bar/dist/ionic.filter.bar.css">
```

3. Add the javascripts
```html
<script src="path/to/intlpnIonic.js"></script>
<script src="path/to/data.js"></script>
<script src="path/to/lib/libphonenumber/build/utils.js"></script>
<script src="path/to/ionic-filter-bar/dist/ionic.filter.bar.js"></script>
```

4. load the directive and use it
Expand Down
5 changes: 4 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"./img/intlpn-flags.png",
"./lib/libphonenumber/build/utils.js"
],
"license": "MIT"
"license": "MIT",
"dependencies": {
"ionic-filter-bar": "^1.1.1"
}
}
5 changes: 5 additions & 0 deletions js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1238,3 +1238,8 @@ for (var i = 0; i < allCountries.length; i++) {
areaCodes: c[4] || null
};
}

if (typeof module === 'object' && module.exports) {
module.exports = allCountries;
}

Loading