# Reference Error: Ionic is not defined

**URL:** <https://forum.ionicframework.com/t/reference-error-ionic-is-not-defined/48000>\
**Category:** ionic-v1\
**Created:** [March 31, 2016, 2:53pm UTC](https://forum.ionicframework.com/t/reference-error-ionic-is-not-defined/48000 "2016-03-31T14:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatheusSuffi](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@MatheusSuffi](https://forum.ionicframework.com/u/MatheusSuffi)\
**Post date:** [March 31, 2016, 2:53pm UTC](https://forum.ionicframework.com/t/reference-error-ionic-is-not-defined/48000/1 "2016-03-31T14:53:17Z")

</div>

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