FGF-College-Work / Forum

:beer: Espaço dedicado a discussões e tira dúvida sobre disciplinas e conteúdo tecnológico.
MIT License
13 stars 4 forks source link

Mobiscroll CLI #193

Open marcialwushu opened 4 years ago

marcialwushu commented 4 years ago

Step 1. Install the Mobiscroll CLI from npm (you might need sudo access).

npm install -g @mobiscroll/cli

Step 2. Run the config command in the root folder of the Ionic project.

You will be prompted to log in with your mobiscroll account. If you don't have an app, create a starter for Ionic with Mobiscroll run $ mobiscroll start ionic-angular myStarterApp.

$ mobiscroll config ionic

Step 3. Add a mobiscroll component to one of your pages and run the app.

If you're using an ionic starter, you can add it to src/pages/home/home.html:

<ion-content>
    <ion-item>
        <ion-label>Birthday</ion-label>
        <ion-input [(ngModel)]="myBirthday" mbsc-date></ion-input>
    </ion-item>
</ion-content>

Run ionic serve in your project root folder.

ionic serve

MOBISCROLL