คำถามติดแท็ก polymer

10
อะไรคือความแตกต่างระหว่างองค์ประกอบโพลิเมอร์และคำสั่ง AngularJS?
ในหน้าโพลิเมอร์เริ่มต้นเราจะเห็นตัวอย่างของการใช้งานโพลิเมอร์: <html> <head> <!-- 1. Shim missing platform features --> <script src="polymer-all/platform/platform.js"></script> <!-- 2. Load a component --> <link rel="import" href="x-foo.html"> </head> <body> <!-- 3. Declare the component by its tag. --> <x-foo></x-foo> </body> </html> สิ่งที่คุณจะสังเกตเห็นจะ<x-foo></x-foo>ถูกกำหนดโดยและplatform.jsx-foo.html ดูเหมือนว่านี่จะเทียบเท่ากับโมดูล directive ใน AngularJS: angular.module('xfoo', []) .controller('X-Foo', ['$scope',function($scope) { $scope.text = 'hey hey!'; }) …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.