bootstrap-for-ember icon indicating copy to clipboard operation
bootstrap-for-ember copied to clipboard

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

Open kristianmandrup opened this issue 10 years ago • 2 comments

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>

kristianmandrup avatar Sep 11 '14 13:09 kristianmandrup

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.

asaf avatar Sep 17 '14 08:09 asaf

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

billybonks avatar Oct 07 '14 03:10 billybonks