GithubHelp home page GithubHelp logo

emberjs-requirejs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

emberjs-requirejs's Issues

Ember cannot find Handlebars

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..

Routes EmberJS Pre4

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?

Upgrade to v1.0.0-pre.3 - Application initialize may only be called once

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@c1c7207

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?

create new Tab problem

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?

grab json object from server

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

Including ember-data

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.