2015-01-24から1日間の記事一覧

angular.jsで同じcontrollerが2回呼ばれる原因

// router myApp.config(function($routeProvider) { $routeProvider.when('/', { templateUrl: "index.html", controller: "ControllerIndex", }).otherwise({ redirectTo: '/' }); }); // controller myApp.controller("ControllerIndex", function($scope…