Quantcast
Viewing all articles
Browse latest Browse all 49188

In corporating ngCordova plugins

@longliveajay wrote:

In order to incorporate the Toastr ngCordova plugin.. I followed the following steps

  1. bower install ngCordova
  2. include ngCordova in my app

    angular.module('app', ['ionic', 'ngCordova'])

  3. Install plugin

    cordova plugin add https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git

  4. Use the plugin

    app.controller('myController', function($cordovaToast) {

    });

This seems pretty straight forward. However I encounter the following errors:

ionic.bundle.js:21157 TypeError: Cannot read property 'toast' of undefined
    at Object.show (http://localhost:8100/lib/ngCordova/dist/ng-cordova.min.js:9:20474)

I am running the app in chrome browser.

What am I missing here ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>