khamsat khamsat khamsat

HTTP Request Via Ajax

to render data from server with module you also need to use jsH with external Component
with the main syntax before with $http.parse()


<div fn-module="myController" > </div>   
<script type="application/jsH" externalComponent >
 {%
   for(let i=0; i < myController.length; i+){
    {{
      <h2 >Name :   {{+myController[i].name+}} </h2>
      <h2 >age  :   {{+myController[i].age+}} </h2>
    }}
   }
%}
</script>

<script type="text/javascript">
haxcv.module("myController" , ($xes) => { 
     $xes.parse("api.php" , '*[externalComponent]');     
});
</script>   
     
    
khamsat khamsat khamsat khamsat