저는 Laravel 5.1 및 Angular JS 2.1을 사용하고 있습니다. 그러나 내 견해는 각 지시어를 잡지 못하고있다.laravel 5.1 및 angular 2.1
이미 유래에 제공하는 모든 대안을 겪었지만, 해결책을 찾을 수 없습니다, 제안하십시오 -
여기는
<html ng-app="nameApp">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/2.0.0-beta.17/angular2.min.js"></script>
<script>
var nameApp = angular.module('nameApp', []);
nameApp.controller('NameCtrl', function($scope){
$scope.firstName = 'Manish';
$scope.lastName = 'Sijaria';
});
</script>
</head>
<body ng-controller="NameCtrl">
First name: <input ng-model="firstName" type="text"> </input>
</br>
Last name: <input ng-model="lastName" type="text"> </input>
</br>
Hello @{{ firstName }} @{{ lastName }}
</body>
</html>
각도 2.0을 가져오고 있지만 각진 마크 업은 1.x 각도입니다. Angular 2는 Angular 1.x가 작동하는 방식과 크게 다르며 이전 버전과 호환되지 않습니다. – jfadich