mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
docs(platform): fix import statements
This commit is contained in:
@ -12,7 +12,7 @@ import {Config} from '../config/config';
|
|||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```ts
|
* ```ts
|
||||||
* import {Platform} 'ionic-angular';
|
* import {Platform} from 'ionic-angular';
|
||||||
* export MyClass {
|
* export MyClass {
|
||||||
* constructor(platform: Platform){
|
* constructor(platform: Platform){
|
||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
@ -57,7 +57,7 @@ export class Platform {
|
|||||||
* Depending on the platform name, isPlatform will return true or flase
|
* Depending on the platform name, isPlatform will return true or flase
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* import {Platform} 'ionic-angular';
|
* import {Platform} from 'ionic-angular';
|
||||||
* export MyClass {
|
* export MyClass {
|
||||||
* constructor(platform: Platform){
|
* constructor(platform: Platform){
|
||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
@ -81,7 +81,7 @@ export class Platform {
|
|||||||
* it would return mobile, ios, and iphone.
|
* it would return mobile, ios, and iphone.
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* import {Platform} 'ionic-angular';
|
* import {Platform} from 'ionic-angular';
|
||||||
* export MyClass {
|
* export MyClass {
|
||||||
* constructor(platform: Platform){
|
* constructor(platform: Platform){
|
||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
@ -103,7 +103,7 @@ export class Platform {
|
|||||||
* Returns an object containing information about the paltform
|
* Returns an object containing information about the paltform
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* import {Platform} 'ionic-angular';
|
* import {Platform} from 'ionic-angular';
|
||||||
* export MyClass {
|
* export MyClass {
|
||||||
* constructor(platform: Platform){
|
* constructor(platform: Platform){
|
||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
@ -142,7 +142,7 @@ export class Platform {
|
|||||||
* Returns a promise when the platform is ready and native functionality can be called
|
* Returns a promise when the platform is ready and native functionality can be called
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* import {Platform} 'ionic-angular';
|
* import {Platform} from 'ionic-angular';
|
||||||
* export MyClass {
|
* export MyClass {
|
||||||
* constructor(platform: Platform){
|
* constructor(platform: Platform){
|
||||||
* this.platform = platform;
|
* this.platform = platform;
|
||||||
|
Reference in New Issue
Block a user