Subversion Repositories bacoAlunos

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page contentType="text/html; charset=UTF-8"  language="java"%>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="bacoTags" %>
<html>
<!-- ESTES INCLUDES NAO SE COLOCAM EM DESENVOLVIMENTO O LAYOUT DO BACO JA OS INCLUI-->
<head>


</head>


<body ng-app="BacoAngularApp">

<jsp:include page="/layout/themes/scripts-default.jsp"/>
<jsp:include page="/layout/headerTools.jsp"/>

<p>Try to change the names.</p>



<div id="myApp2" ng-app="myApp2"  ng-controller="myCtrl2">
    First Name: <input type="text" ng-model="firstName"><br>
    Last Name: <input type="text" ng-model="lastName"><br>
    Full Name: {{firstName + " " + lastName}}
</div>
<script>
    var app2 = angular.module('myApp2', []);
    GLOBAL_BacoAngularAppDependencies.push('myApp2');
    app2.controller('myCtrl2', function($scope) {
        $scope.firstName= "John";
        $scope.lastName= "Doe";
    });
</script>

<div id="myApp1" ng-app="myApp1"  ng-controller="myCtrl1">
    First Name: <input type="text" ng-model="firstName"><br>
    Last Name: <input type="text" ng-model="lastName"><br>
    Full Name: {{firstName + " " + lastName}}
</div>
<script>
    var app1 = angular.module('myApp1', []);
    GLOBAL_BacoAngularAppDependencies.push('myApp1');
    app1.controller('myCtrl1', function($scope) {
        $scope.firstName= "John";
        $scope.lastName= "Doe";
    });
</script>




<script>
    function preLoad()
    {
        $.post("1-angularLoadAjax.jsp?injectAngular=true",function(data){
           $("#preLoad").html(data);
        });
    }
</script>
<h2>Exemplo usando as BacoTags para chamar AJAX mais rapidamente</h2>
<bacoTags:callAjaxModal targetUrl="/examples/angular/injectfromajax/injectarComAngularTree/1-angularLoadAjax.jsp" btnClass="btn btn-default" btnLabel="Puxar Com Angular Tree" title="Puxar Com Angular Tree"/>

<div id="preLoad"></div>





</body>
</html>