I use sidemenu template for my application. It initially created the angular.module('starter', ['ionic', 'starter.controllers']) module angular.module('starter', ['ionic', 'starter.controllers']) , but I also need to connect the angular.module('ionicApp', ['ionic','chart.js']) module angular.module('ionicApp', ['ionic','chart.js']) so that chart.js . All this is necessary to create a graphics controller.
|
1 answer
To connect the module to AngularJS , first pull it up with html, after loading angular and ionic
<script src="js/Chart.min.js"></script> <script src="js/angular-chart.min.js"></script> then change your code
angular.module('starter', ['ionic', 'starter.controllers']) on this
angular.module('starter', ['ionic', 'starter.controllers', 'chart.js']) |