How I can create an input box having a + and - button. Clicking upon which user can change the quantity of product selected, like this screen:
相关问题
- Plugin with id 'com.google.gms.google-services
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- How to pass form data from Ionic 3 to PHP file?
- Angular ngAnimate not working first time on page l
相关文章
- Passing variable through URL with angular js
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Ionic 4: Hardware Back Button Reloading Applicatio
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
As for ionic v.1 at your template you could have something like:
At your css
And in your controller
Here's a quickly thrown together example for Ionic 2. If you are using Ionic 1 you should be able to adapt it pretty easily.
You just need a couple controller/class functions to increment and decrement, then call those on tap from the buttons. This example covers just one button, so something like this wrapped in an
ngFor
or a<ion-list>
page.ts:
page.html: