Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Odd problem trying to start ui-layout #217

Open
jmls opened this issue Jul 12, 2016 · 2 comments
Open

Odd problem trying to start ui-layout #217

jmls opened this issue Jul 12, 2016 · 2 comments

Comments

@jmls
Copy link

jmls commented Jul 12, 2016

I am trying to use this lib, but hitting an initialisation error

image

I installed using

bower install --save angular-ui-layout

I am including the script and css

<link rel="stylesheet" href="../bower_components/angular-ui-layout/src/ui-layout.css" />
<script src="../bower_components/angular-ui-layout/src/ui-layout.js"></script>

and have ui.layout in the module section

angular
  .module('myApp', ['ngAnimate',  'ngSanitize', 'ngResource', 'ngMaterial',ui.layout'])

and this is the html

<div ui-layout-container>

    <div ui-layout="{flow : 'column'}">
        <div ui-layout-container>
           <h1>demo1</h1>
        </div>
        <div ui-layout-container>
            <h1>demo2</h1>
        </div>
    </div>

</div>

what am I missing / doing wrong ?

@dockinkong
Copy link

Hello,

I suppose this is not the origin of the issue, but your missing a quote in your module declaration, just behind ui.layout
.

@dockinkong
Copy link

You should include your html in a ui-layout to make it work...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants