AngularJS ng-bind-template အဆိုပါ

အဆိုပါ ကျမ်းကို အသုံးပြု နှင့် အသုံးချကြိုးပမ်း

ng-bind-template အဆိုပါ အိမ်နီးခံ အစိုက်အစာ အရာ ကို အသုံးပြု ပြီး ကိုယ်တိုင် အိမ်နီးခံ အစိုက်အစာ အရာ ကို ပြောင်းလဲစေရန် အဆိုပါ အဆိုပါ အိမ်နီးခံ အစိုက်အစာ အဆိုပါ အဆိုပါ အိမ်နီးခံ အစိုက်အစာ အရာ ကို ပြောင်းလဲစေရန်

သင် မျိုးပေါင်း အိမ်နီးခံ အစိုက်အစာ ပေါင်းစပ် ပုံစံ ကို အသုံးပြု ရန် ng-bind-template အဆိုပါ

အကြောင်းကြောင်း

နှစ်ခုပေါင်း အိမ်နီးခံ အစိုက်အစာ ပေါင်းစပ် ပုံစံ <p> အရာတွင်

<div ng-app="myApp" ng-bind-template="{{firstName}} {{lastName}}" ng-controller="myCtrl"></div>
<script>
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
    $scope.firstName = "Bill";
    $scope.lastName = "Gates";
});
</script>

try it yourself

syntax

<element ng-bind-template="expression</element>

all HTML elements support.

parameter

parameter description
expression အချက်အလက် တစ်ခုချင်း သို့မဟုတ် အချက်အလက် များ တစ်ခုချင်း ကို အော်ဒါ အတွင်း ပါဝင်သည်။