In this video, Tom Duffy explores adding a platform-specific message.
- [Instructor] Let's make this a little more interesting,…so we can see the true value of Ionic.…Let's add an alert that displays our message.…As you'll soon see, Ionic will present the alert…and mimic the underlying platform for display.…First, we need to import the alert controller class.…So at the top of the file let's add an import statement…and inside curly brackets the name of the class…is AlertController.…
And that happens to be in the ionic-angular package.…So the import statement just makes…the alert controller class available to our project.…Next we need to create an instance of the alert controller,…just inside the class declaration.…So, just beneath the export statement…let's add a constructor for an alert controller.…So alertCtrl, alert control is going to be the name…of the object we create…and its type is going to be AlertController.…
Jump back into sayHello to configure and show an alert.…So start by creating a variable…which I'll call alert dialog,…and we'll set that equal to this.alertCtrl,…and we're going to call the create method…
- Hybrid vs. native cross-platform apps
- Choosing an editor
- Building a Cordova app
- Building an Ionic app
- Buildin an app with the Create React Native App
- Building an app with the React Native CLI
- Building a Titanium app
- Building a Xamarin app
Skill Level Beginner
Ionic 3.0 for Mobile App Developerswith Sani Yusuf5h 43m Intermediate
React Native: Building Mobile Appswith Steven Emmerich2h 32m Intermediate
1. Intro to Cross-Platform Development
4. React Native
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.