Of course, we can't ignore the biggest boot news of the week which was Lionel Messi spotted in the new adidas F50 . So all eyes will be on Barca's clash at the weekend with Sociedad, to see if the world's best player will continue to wear his new boots!
Pada AngularJS, controller didefinisikan sebagai fungsi konstruktor / constructor function JavaScript yang digunakan menambahkan scope angular ( objek angular yang mengacu pada application model ). Gunakan controller untuk: mengatur kondisi awal suatu objek $scope. menambah behavior ke suatu objek $scope. Controller dengan $scope Saat sebuah controller ditambahkan ke DOM dengan directive ng-controller , AngularJS akan menginisiasi objek controller baru, menggunakan f ungsi konstruktor controller yang telah ditentukan. sebuah child scope akan dibuat dan dapat digunakan sebagai injectable parameter ke fungsi konstruktor controller sebagai $scope . contoh: app.js var app = angular.module("myApp", []); app.controller("scopeCtrl", function($scope) { $scope.firstName = ""; }); view Controller dengan syntax Jika controller ditambahkan menggunakan syntax 'controller as' maka controller instance akan ditugaskan k...
Comments
Post a Comment