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

Please write a new simple Hello World tutorial using ember cli setup #175

Open
kristianmandrup opened this issue Sep 11, 2014 · 2 comments

Comments

@kristianmandrup
Copy link

I'm trying with the following, using the Hello World tutorial as a base. I first had to replace several /vendor/ references with /bower_components/.

PS: I think this is a bit too long... /bower_components/ember-addons.bs_for_ember/dist/js

I still don't see the alert box :(

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>DemoApp</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {{BASE_TAG}}

      <!--standard Bootstrap css file-->
    <link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="assets/vendor.css">
    <link rel="stylesheet" href="assets/demo-app.css">
  </head>
  <body>
    <script>
      window.DemoAppENV = {{ENV}};
      window.EmberENV = window.DemoAppENV.EmberENV;
    </script>
    <script type="text/x-handlebars">
        Alert here!
        {{bs-alert message="A self destroyable hello world message!" type="info" dismissAfter=2 fade=true}}

        {{outlet}}
    </script>

    <!--Core of Bootstrap for Ember -->
    <script src="/bower_components/ember-addons.bs_for_ember/dist/js/bs-core.min.js"></script>
    <!--Alert component -->
    <script src="/bower_components/ember-addons.bs_for_ember/dist/js/bs-alert.min.js"></script>

    <script src="assets/vendor.js"></script>
    <script src="assets/demo-app.js"></script>
    <script>
      window.DemoApp = require('demo-app/app')['default'].create(DemoAppENV.APP);
    </script>
  </body>
</html>
@asaf
Copy link
Collaborator

asaf commented Sep 17, 2014

I'm putting most of the effort on https://github.com/indexiatech/ember-components, there, you already have ember-cli support out of the box.

@billybonks
Copy link

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

3 participants