Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Reference Error: Ionic is not defined

$
0
0

@MatheusSuffi wrote:

hello.

when I try to use the variable " Ionic " inside the app.js or controller.js , I get an error:
"Reference Error : Ionic is not defined "
I wonder if this missing some dependency or plugin .
CLI version: 1.7.1
Cordova version : 6.1.0
Gulp : 3.9.1
Ionic App lib : 0.7.0
Node version : 4.2.2

My Code (app.js):

angular.module('starter', ['ionic','ngCordova', 'starter.controllers', 'starter.services'])
.run(function($ionicPlatform,$rootScope) {
  $rootScope.Ionic = Ionic.io();
  .......

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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