Skip to content

feat(slides): add slides controller - #5820

Closed
DomiR wants to merge 1 commit into
ionic-team:2.0from
DomiR:2.0
Closed

DomiR wants to merge 1 commit into
ionic-team:2.0from
DomiR:2.0

Conversation

@DomiR

@DomiR DomiR commented Mar 12, 2016

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

Slides can't be programatically changed, which would be nice.

Changes proposed in this pull request:

  • Add a slider controller

Ionic Version: 2.x

Added slides-controller to programatically tansit to next or prev slides.
@manucorporat

Copy link
Copy Markdown
Contributor

@DomiR

why not this?

    constructor(private ionicApp: IonicApp) { }

    ngAfterViewInit() {
        this.slider = this.ionicApp.getComponent('my-slider');
    }

    nextProgramatically() {
        this.slider.next();
    }

@brandyscarney brandyscarney added this to the 2.0.0-beta.5 milestone Mar 23, 2016
@brandyscarney brandyscarney self-assigned this Mar 23, 2016
@brandyscarney

Copy link
Copy Markdown
Member

Thanks for the PR! We'll take a look at this as part of beta.5. 😄

@adamdbradley

Copy link
Copy Markdown
Contributor

@DomiR Thanks for the PR, however, with ng2's @ViewChild we can get a reference to the slider and interact with it then. I've updated our tests to show an example: 2295bd9 We'll also work on improving the docs, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants