Vue 3 Composition API tutorial with examples

Vue introduces Composition API (Function-based API) as an addition to current Options-based API. The API will be released with Vue 3, but now you can try it with Vue 3 Composition API added to your Vue 2 app. In this tutorial, we’re gonna show you:

  • New Vue Composition API overview and comparison with classic Vue Options-based API
  • Examples to implement a Vue Component with new API: props, data, watchers, lifecycle hooks
  • Example to take advantage of new Vue 3 Composition API (function-based API): split Topics into Functions

Related Posts:
Vue v-slot tutorial with examples
Vue 3 CRUD example with Axios & Vue Router
Vue 3 Authentication with JWT, Vuex, Axios and Vue Router

Read More

Dart/Flutter List Tutorial with Examples

One of the most popular data structure in OOP is List. In this tutorial, we’ll show you many methods and functions to work with a List in Dart (also in Flutter). At the end, you’re gonna know:

  • Introduction to Dart List
  • How to create, initialize, access, modify, remove items in a List
  • Ways to iterate, find, filter, transform items of a List in Dart/Flutter
  • How to create List of objects in Dart/Flutter
  • Ways to sort a List (of objects) in Dart/Flutter
  • Initialize, iterate, flatten list of Lists

Related Posts:
Dart/Flutter – Convert Object to JSON string
Dart/Flutter – Convert/Parse JSON string, array into Object, List
Dart/Flutter – Convert List to Map & Map to List
Dart – Convert Object to Map and Vice Versa
Dart/Flutter – Sort list of Objects

Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter Map Tutorial with Examples

Read More

How to parse a String into a number in Dart/Flutter

Converting String into Number is necessary for almost language. Dart is no exception. In this tutorial, we’re gonna look at ways to parse a String into a number (int & double) using parse() and tryParse() method. You also know how to catch Exception for invalid input string, or convert a Hex string to int in Dart/Flutter.

Related Posts:
Dart/Flutter – Convert/Parse JSON string, array into Object, List
Dart – Convert Object to Map and Vice Versa

Dart/Flutter Constructors tutorial with examples
Dart/Flutter String Methods & Operators tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter List Tutorial with Examples
Dart/Flutter Map Tutorial with Examples

Read More

Dart/Flutter String Functions & Operators tutorial with examples

A Dart string is a sequence of UTF-16 (16-bit Unicode Transformation Format) code units. It makes Dart more powerful to build our mobile and web applications in any language. In this tutorial, we’re gonna look at many Dart String Functions & Operators that are helpful. You will know:

  • Ways to create some kind of Strings in Dart/Flutter
  • Methods get data from a String in Dart/Flutter
  • Basic methods to validate data inside a String in Dart/Flutter
  • How to transfrom, split, join, trim Strings in Dart/Flutter
  • Some kind of methods to replace substring in a String in Dart/Flutter

Related Posts:
Dart/Flutter Constructors tutorial with examples
Dart/Flutter Future Tutorial with Examples
Dart/Flutter List Tutorial with Examples
Dart/Flutter Map Tutorial with Examples
Dart/Flutter – Sort list of Objects

Read More