Closed Blackening999 closed 8 years ago
@Blackening999 I don't have the latest version (1.0) installed in my application, but running the dummy app and changing views via an action appears to work fine. Can you share some code showing how you're using the addon?
@jamesdixon I've tested on 0.5.1 . This version was installed by default via "ember install
Sure. I have a controller:
import Ember from 'ember';
const {
Controller,
computed
} = Ember;
export default Controller.extend({
startDate: null,
viewName: 'basicDay',
events: computed(function() {
return Ember.A([{
title: 'Event 1',
start: '2016-05-05T07:08:08',
end: '2016-05-05T09:08:08'
}, {
title: 'Event 2',
start: '2016-05-06T07:08:08',
end: '2016-05-07T09:08:08'
}, {
title: 'Event 3',
start: '2016-05-10T07:08:08',
end: '2016-05-10T09:48:08'
}, {
title: 'Event 4',
start: '2016-05-11T07:15:08',
end: '2016-05-11T09:08:08'
}]);
}),
actions: {
changeView(viewName) {
this.set('viewName', viewName);
}
}
});
Route is empty in my case (for now)
Template
<button onclick={{action "changeView" "month"}}>Month</button>
<button onclick={{action "changeView" "agendaWeek"}}>Week</button>
<button onclick={{action "changeView" "agendaDay"}}>Day</button>
{{viewName}}
{{full-calendar viewName=viewName}}
The interesting part is - I can't even set a breakpoint, it completely ignores the script of full-calendar/component.js
Would appreciate any help, cause I don't want to go the way of copy-paste and mindstorm :(
Can you do me a favor and try installing from master
? This was upgraded to 1.0.0 and for some reason, it's only showing 0.5.1 on NPM. At first I thought I may have forgotten to publish, but when trying to republish to NPM, it's telling me otherwise.
@jamesdixon same issue :\
@Blackening999 code looks ok. Can you try cloning the repo and running the dummy app to see if it works for you?
When I have some time, I'll give this a shot in my own application.
pffffff. I'm so sorry for wasting your time. I found the error. What a shame. Some noob named component the same and it isn't used anywhere
Hey guys!
Nice addon, however it doesn't reflect on any option passed in. I'm laying around with viewName being passed into a component. Ember: 2.5.0
This is a blocker :(