我想使用角度js bootstrap,所以PLZ建議我如何..?如何使用角度js與自舉?
<div ng-app="myApp" ng-controller="myCtrl" class="container">
<div class="row">
First Name:
<input type="text" ng-model="firstName">
</div>
Last Name:
<input type="text" ng-model="lastName">
<br>
<br> Full Name: {{firstName + " " + lastName}}
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>
它不工作。
您需要包含源代碼,然後注入模塊。有一個角度特定版本的引導順便說一句。 –