Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this compatible with Angular 4? #19

Open
ustincameron opened this issue Aug 12, 2017 · 0 comments
Open

Is this compatible with Angular 4? #19

ustincameron opened this issue Aug 12, 2017 · 0 comments

Comments

@ustincameron
Copy link

ustincameron commented Aug 12, 2017

Attempting to integrate this into my page.ts file but getting:
Typescript Error
Unexpected token. A constructor, method, accessor, or property was expected.

Here is my code:`
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';

@component({
selector: 'page-control_panel',
templateUrl: 'control_panel.html'
})
export class ControlPanel {
constructor(public navCtrl: NavController, public navParams: NavParams) {

}
var app = angular.module('myApp',['angular.circular-slider']);

app = angular.module('main_slider', ['angular.circular-slider']);
app.controller('main_slider', function ($scope) {
$scope.min = 10;
$scope.max = 100;
$scope.shape='Circle';
$scope.value = 20;
$scope.onSlide = function onSlide (value) {
console.log('on slide ' + value);
}

$scope.onSlideEnd = function onSlideEnd(value) {
console.log('on slide end ' + value);
}
})
}
`

@ustincameron ustincameron changed the title Is this compatible with ionic 3? Is this compatible with Angular 4? Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant