fernandogmar / emberjs-requirejs Goto Github PK
View Code? Open in Web Editor NEWStarter kit for EmberJS using RequireJS
Starter kit for EmberJS using RequireJS
I'm getting this error:
Ember Handlebars requires Handlebars 1.0.0-rc.3 or greater. Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file before you link to Ember.
I have handlebars
declared in my require paths, and the version is rc.4
, so it is greater.
My ember
shim looks like this:
ember: {
deps: ["jquery", "handlebars"],
exports: "Ember"
}
Not sure what the issue is..
I don't understand how your routing is working, it does not seem to be pre4 methods. I've also tried to add my own route to your starterkit but constantly get Uncaught Error: No route matched the URL '/test/'
Is this supposed to work on pre4?
When upgrading to v1.0.0-pre.3, I get the following errors:
Uncaught Error: assertion failed: Ember.Object.create no longer supports defining methods that call _super.
Which it appears that for performance reasons, the original create() functionality was preserved in createWithMixins()
Which is answered fairly clearly here:
emberjs/ember.js#1623 (comment)
http://stackoverflow.com/questions/13856755/ember-application-create-with-mixin-and-parameters
But once I make that change, I now get this error:
Uncaught Error: assertion failed: Application initialize may only be called once
A search of your codebase and only running an App.initialize() once.
(function(root){
require(["config"], function(config){
requirejs.config(config);
require(["App", "domReady!", "ember"], function(App, doc, Ember){
var app_name = config.app_name || "App";
root[app_name] = App = Ember.Application.create(App);
!App.isInitialized && App.initialize();
});
});
})(this);
Any Ideas?
thanks for great working on this,my question is I want to use yout createTab function in tabListController
when I pass the input value from TabCreationView to tabListController
var TabCreationView = Em.View.extend({
content: null,
controller: tabListController,
template: Ember.Handlebars.compile(tabCreationTemplate),
createTab: function() {
var new_name = this.$("input").val();
var controller = this.get("controller");
controller.createTab(new_name);
},
});
but the createTab function just grab the string (problem is not the object) to addTab function so I just get a empty tab there.
createTab: function(name) {
var tab = TabModel.create(name);
this.addTab(tab);
this.showTab(tab);
},
Is there any way to make it?
If I want to to grab json object from server instead of hard coding in the tabFixtures. Is there any better way to achieve that? must I use RESTAdapter? any change I still make for this structure?
sorry for so many questions, because I am totally new to this ember .
cheers
Your code is really useful to me and I've been attempting to use it with https://github.com/luan/ember-facebook but without any success.
Perhaps you'd consider adding basic instructions on how to properly load additional libraries and use mixins?
I've been playing around a bit with your starterkit and it seems to be working very nicely. I was wondering if you ever tried to use ember-data with it though. I can't seem to get it to work, keep getting the following error: LoadedState.createWithMixins is not a function.
Edit: turns out that I was using a newer version ember-data with an older version of ember (the one on their homepage is not actually up to date). Getting the latest version of ember fixed the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.