顯示具有 AngularJS 標籤的文章。 顯示所有文章
顯示具有 AngularJS 標籤的文章。 顯示所有文章

2024年4月29日 星期一

Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --3

 Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --3

AngularJS 實例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.net/angular.js/1.4.6/angular.min.js"></script> 
</head>
<body>

<div ng-app="" ng-init="quantity=1;cost=5">
<p>总价: {{ quantity * cost }}</p>
</div>

</body>
</html>

node-red Dashboard UI Template

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.net/angular.js/1.4.6/angular.min.js"></script> 
</head>
<body>

<div ng-app="" ng-init="quantity=21;cost=25">
<p>數量: {{ quantity}}</p>
<p>單價: {{ cost }}</p>
<p>總價: {{ quantity * cost }}</p>
</div>

</body>
</html>

Node-Red 畫面


AngularJS 實例 /  node-red Dashboard UI Template


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.net/angular.js/1.4.6/angular.min.js"></script> 
</head>
<body>

<div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">

<p>姓名 {{ person.firstName + ' '+ person.lastName }}</p>

</div>

</body>
</html>

Node-Red 畫面


2024年4月24日 星期三

2024年4月24日 星期三 Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --2

 2024年4月24日 星期三 Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --2


AngularJS 實例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.net/angular.js/1.4.6/angular.min.js"></script> 
</head>
<body>

<div ng-app="">
  <p>我的第一个表达式: {{ 5 + 5 }}</p>
</div>

</body>
</html>



node-red Dashboard UI Template

 

<script src="https://cdn.babylonjs.com/babylon.js"></script>

<style>

.main

{

    height:600px;

    width:200px;

    background:lightblue;

        

}

</style>


<body>


<div ng-app="">

  <p>我的第一个表达式: {{ 5 + 5 }}</p>

</div>


</body>

</html>



Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --1

 Node-Red Dashboard UI Template + AngularJS 參考 AngularJS教學 --1

參考來源 https://www.runoob.com/angularjs/angularjs-tutorial.html


AngularJS 實例


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.net/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>

<div ng-app="">
  <p>名字 : <input type="text" ng-model="name"></p>
  <h1>Hello {{name}}</h1>
  <p ng-bind="name"></p>
</div>

</body>
</html>




node-red Dashboard UI Template

<script src="https://cdn.babylonjs.com/babylon.js"></script>
<style>
.main
{
    height:600px;
    width:200px;
    background:lightblue;
        
}
</style>

<div ng-app="">
  <p>名字 : <input type="text" ng-model="name"></p>
  <h1>Hello {{name}}</h1>
  <p ng-bind="name"></p>
</div>

</body>
</html>






零成本學 ESP32!在 Wokwi 打造你的第一個微型氣象站 (ESP32 + DHT22 + 1602 LCD)

零成本學 ESP32!在 Wokwi 打造你的第一個微型氣象站(溫度 濕度) (ESP32 + DHT22 + 1602 LCD) 想學物聯網(IoT)與 ESP32 電子實作,卻擔心接線與電壓規範搞砸嗎?透過強大的線上模擬器 Wokwi ,我們不需要花費任何硬體費用,打開瀏覽器...