hello, why isn't this working !!

60 views
Skip to first unread message

jaha taha

unread,
Oct 18, 2015, 11:13:07 AM10/18/15
to AngularJS
<!DOCTYPE html>
<html ng-app="StarterApp">
<head>

    <!-- Compiled and minified CSS -->
    <!--Import Google Icon Font-->
    <meta charset="utf-8">
    <!-- Site's designed for mobile -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>


    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="styleConsultation1.css">
<script>
                  
           $scope.Commandes =
     [
{
LieuCommande:"Makdhal 1",
NomBorne:"Borne 10",
src:"mobile.png",
NumCommande:"1000",
DateCommande:"14:15",
Qte:1,
src:"chiken.png",
Nom:"Chiken Dhal",
CompositionName:"sans tomate",
}
{
LieuCommande:"Makdhal 1",
NomBorne:"Borne 10",
MobileCommandeImg:"mobile.png",
NumCommande:"1000",
DateCommande:"14:15",
Qte:2,
MenuImg:"chiken.png",
Nom:"Chiken Dhal",
CompositionName:"sans tomate",
}
{
LieuCommande:"Makdhal 1",
NomBorne:"Borne 10",
MobileCommandeImg:"mobile.png",
NumCommande:"1000",
DateCommande:"14:15",
Qte:5,
MenuImg:"chiken.png",
Nom:"Chiken Dhal",
CompositionName:"sans tomate",
}
];
  
});
        </script>

</head>
<body class="ConsultationBody">
<div class="main">

    <nav class="blue darken-2">
        <div class="nav-wrapper">
            <ul  class="btnnav right hide-on-small-only">
                <li class="col l6 s4"><a href="#"><i class="material-icons">person_pin</i></a></li>

                <li class="col l6 s4"><a href="#"><i class="material-icons">more_vert</i></a></li>
            </ul>
            <a href="#" class="brand-logo">FrenchInnov</a>
        </div>
    </nav>




    <!-- tabs -->
    <div class="tabdiv">
        <div class="row">
            <div class="col s6">
                <ul class="tabs">
                    <li class="tab col s3"><a class="active" href="#test1">Web</a></li>
                    <li class="tab col s3 "><a href="#test2">Livraison</a></li>
                </ul>
            </div>
        </div>
    </div>


    <div>

        <!-- Borne -->
        <div id="test1" class="col l8 s12">
            <div class="CommandeMain card-panel " ng_controller="AppCtrl">
                <div class="CommandeMainBoxItem hoverable">
                    <div class="CommandeMainBox card-content">
                        <div class="CommandeHeader">
                            <div class="DetailsCommandeHeader">
                                <div class="DetailsLieuCommande">
                                    <div class="LieuCommande" ng-bind="Commandes.LieuCommande"></div>
                                    <div class="NomBorne" ng-bind="Commandes.NomBorne"></div>
                                    
                                    
<a class="tooltipped" data-position="top" data-delay="20" data-tooltip="From Mobile" ><img class="MobileCommandeImg"  ng-src="{{mobile.png}}"></a>
                                </div>
                                <div class="DetailsNumCommande">
                                    <div class="NumCommande" ><span ng-bind="Commandes.NumCommande"></span></div>
                                    <div class="DateCommande" ><span ng-bind="Commandes.DateCommande"></span></div>

                                </div>



                            </div>


                        </div>
                        <div class="DetailsCommandeContent">
                           <div class="DetailsCommande">
                                <div>
<span class="Qte" ng-bind="Commandes.Qte"></span>
<img class="MenuImg" ng-src="{{chiken.jpg}}">
<span class="Nom" ng-bind="Commandes.Nom"></span>
</div>
<div class="CompositionName">
<span ng-bind="Commandes.CompositionName"></span>
</div>
                            </div>
                            <div class="line-separator"></div>
                           
                        </div>
                    </div>


                </div>
              
                </div>


                </div>
        

        <!-- Livraison -->

    </div>

</div>

<!-- Compiled and minified JavaScript -->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>


</body>
</html>

Gregg Setzer

unread,
Oct 19, 2015, 3:23:13 PM10/19/15
to AngularJS
Hello Jaha,

One problem i see is invalid code. You have " ng_controller="AppCtrl"" when it should be " ng-controller="AppCtrl"". To specify a controller, use ng-controller with a hyphen and not an underscore.

jaha taha

unread,
Oct 20, 2015, 5:43:17 AM10/20/15
to ang...@googlegroups.com
Hi,
Thank you for your help. 

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/IWSVeT9Rfkk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Allen Buckley

unread,
Oct 20, 2015, 4:12:41 PM10/20/15
to AngularJS
ng_controller and ng-controller are both valid.

Per Angular documentation:

The normalization process is as follows:

  1. Strip x- and data- from the front of the element/attributes.
  2. Convert the :-, or _-delimited name to camelCase.

jaha taha

unread,
Oct 21, 2015, 8:23:48 AM10/21/15
to ang...@googlegroups.com
thank you


--
Reply all
Reply to author
Forward
0 new messages