Skip to content

content: add framework documentation for getting Ionic mode #2580

Open
perrygovier/ionic-docs
#7
@brandyscarney

Description

@brandyscarney

URL

https://ionicframework.com/docs

Issue Description

I can't find anywhere we document how to get the mode, for example in JavaScript:

const mode = Ionic.mode;

in Angular:

import { Config } from '@ionic/angular';

constructor(
  public config: Config
) { }
  
ngOnInit() {
  this.mode = this.config.get('mode');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentIssues related to the contents of the documentation website

    Type

    No type

    Projects

    Status

    Internal review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions