ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
703 stars 103 forks source link

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

Open kristianmandrup opened 10 years ago

kristianmandrup commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

https://github.com/dockyard/ember-cli-bootstrap