![]() ![]() The new release gets published to GitHub and npm automatically.Ĭheck package.json and. This bumps the version of projects/ngx-ionic-image-viewer/package.json, uses conventional-changelog to update CHANGELOG.md, commits package.json and CHANGELOG.md and tags a new release. ![]() Run npm run release to create a new build & release with release-it. Use the -prod flag for a production build.Ĭheck package.json for lifecycle events Release & Publishing The build artifacts will be stored in the dist/ directory. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module. Run ng generate component component-name to generate a new component. Navigate to The app will automatically reload if you change any of the source files. ionic serve: Start a local dev server for app dev/testing.Run the command npm link ngx-ionic-image-viewer inside the projects folder to link the global installation target into your project’s node_modules folder.npm link: Create a local symlink that can then be used in the project where you want to integrate the package as you don’t want to build, publish and update a library all the time while testing. ![]() Run the command to start the build every time a file change: This project was generated with Angular CLI version 8.3.14. Sets the title in the header of the viewer. Sets the text in the footer of the viewer. The image url to display a high-resolution image instead of the original image when opening the viewer. Similiar to (error)="src=./assets/no-image.png" The image url to display an alternative image in case the original image could not be loaded. This attribute is mandatory for the element. If multiple classes are provided they should be separated by spaces. Users will see this text displayed if the image URL is wrong, the image is not in one of the supported formats, or if the image is not yet downloaded.Īdditional classes to apply for custom CSS. This attribute defines the alternative text describing the image. You will find here a good tutorial how to create your own image viewer, which is based on the same approach: ngx-ionic-image-viewerĪn Ionic 4 Angular module to view & zoom on images and photos without any additional dependencies. Feel free to fork this package and work on a successor. Unfortunately I don't have the time to develop this package further according to the demands - thank you for your trust and responses, I appreciated it very much. With Ionic 6, Slider.js will also be split off, which will probably make this package incompatible for now. After getting into the React world 2018, I lost the contact into the Angular Ecosystem. ℹ️ Please note that this package has reached its end. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |