Skip to content

Commit

Permalink
Merge pull request #419 from vc-rakesh/main
Browse files Browse the repository at this point in the history
ionic-v7 - angular 16.x with standalone component migration
  • Loading branch information
iamrsojitra authored Jul 19, 2023
2 parents 401fd87 + eff8f5f commit 921820b
Show file tree
Hide file tree
Showing 174 changed files with 18,586 additions and 18,003 deletions.
16 changes: 16 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 2 Chrome versions
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ npm-debug.log*
.sass-cache/
.tmp/
.versions/
.angular/
coverage/
dist/
node_modules/
Expand Down
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

- Made with stencil
- Web components
- Suport for Vainilla JS
- Suport for Angular
- Support for Vanilla JS
- Support for Angular
- Other frameworks support is coming!!!
- [More info](https://github.com/ionic-selectable/ionic-selectable/tree/v5)

Expand Down Expand Up @@ -42,6 +42,7 @@ An Ionic component similar to [Ionic Select](https://ionicframework.com/docs/api

- Ionic 3 (3.6.0 - 3.9.2)
- Ionic 4 (>=4.0.0)
- Ionic 7 Standalone Component (>=5.0.0)

## Features

Expand All @@ -68,6 +69,10 @@ npm install ionic-selectable@3.5.0 --save
// Ionic 4
npm install ionic-selectable@4.8.0 --save
// Ionic 7 with Angular 16 Standalone component
npm install ionic-selectable@5.0.0 --save
```

2. Import it.
Expand All @@ -83,6 +88,18 @@ import { IonicSelectableModule } from 'ionic-selectable';
})
export class AppModule { }
```
**For Angular 16 standalone component**

```
import { IonicSelectableComponent } from 'ionic-selectable';
@Component({
...,
standalone: true,
imports: [IonicSelectableComponent]
})
```

**Note:** Additionally, if you use Ionic 3+ you might be as well using lazy loaded pages. Check if your pages have a module file, for example, `home.module.ts`, and if they do then import `IonicSelectableModule` to each page module too.
Expand Down
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"defaultProject": "app",
"projects": {
"app": {
"root": "",
Expand Down
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './src/app/components/ionic-selectable/ionic-selectable.module';

export * from './src/app/components/ionic-selectable/ionic-selectable.component';
Loading

0 comments on commit 921820b

Please sign in to comment.