Adding attributes

9 views
Skip to first unread message

Daniel Lopez

unread,
Jul 25, 2014, 5:21:51 AM7/25/14
to ha...@googlegroups.com
Hi,

I just know start using haml and i'm trying to convert my html code.
My html code looks like this:

<body ng-app="dashboardApp">
    <div class="container theme-showcase" ng-controller="MainCtrl">
        <div class="item">
            <div class="pickerContainer widget"></div>
        </div>
        <ul class="nav nav-tabs">
<li><a href="#/tabOne">Proveitos</a></li>
<li><a href="#/tabTwo">Custos</a></li>                
</ul>
<div ng-view></div>        
    </div>
</body>

Since i'm Angullarjs i have some Attributes like 'ng-app' and 'ng-view' and when i convert my code i get this

%body{"ng-app" => "dashboardApp"}
  .container.theme-showcase{"ng-controller" => "MainCtrl"}
    .item
      .pickerContainer.widget
    %ul.nav.nav-tabs
      %li
        %a{href: "#/tabOne"} Proveitos
      %li
        %a{href: "#/tabTwo"} Custos
    %div{"ng-view" => ""}

but when i run it, it breaks at the body line.

Can some one give me a hint on how can i fix it?
Thk
Reply all
Reply to author
Forward
0 new messages