Homniserv / poubExternalProjectHomniserv

for external project issue reference
0 stars 0 forks source link

AngularJS $scope or function this #2

Open moueza opened 6 years ago

moueza commented 6 years ago

$scope : https://gitlab.com/moueza/lesMacDonaldsDeNantes/blob/master/public/controller.js

var app = angular.module('myAppModule', []) .controller('myController', ['$scope', function ($scope) { $scope.count1 = 0;

moueza commented 6 years ago

function this : http://campus.codeschool.com/courses/shaping-up-with-angularjs/level/2/section/2/gallery-controller

app.controller('StoreController', function(){ this.products = gems; });