Reference Error: Ionic is not defined


#1

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();
  .......