我希望我的代码在我的 ionic 应用程序中滑动滑块时显示范围值(在滑块上)。
我的滑块代码是:
<h5>Scale</h5>
<div class="item range">
<i>1</i>
<input type="range" id="inputRange" name="volume" min="1" max="10">
<i>10</i>
</div>
Run Code Online (Sandbox Code Playgroud)
我的代码需要哪些更改?
我想在我的离子应用程序中使用折线图,但我得到的只是空白屏幕.
我也收到一个错误:
TypeError: (intermediate value)[type] is not a function
at createChart (angular-chart.js:197)
at Object.fn (angular-chart.js:150)
at Scope.$digest (ionic.bundle.js:28995)
at Scope.$apply (ionic.bundle.js:29263)
at done (ionic.bundle.js:23676)
at completeRequest (ionic.bundle.js:23848)
at XMLHttpRequest.requestLoaded (ionic.bundle.js:23789)
Run Code Online (Sandbox Code Playgroud)
app.js:
angular.module('starter', ['ionic', 'starter.controllers', 'chart.js'])
Run Code Online (Sandbox Code Playgroud)
controller.js:
angular.module('starter.controllers',[])
.controller('AspDashController', ['$scope', '$state', function($scope, $state) {
$scope.labels = ["January", "February", "March", "April", "May", "June", "July"];
$scope.series = ['Series A', 'Series B'];
$scope.data = [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90]
];
$scope.onClick = function (points, …Run Code Online (Sandbox Code Playgroud)