[removed] does not work in AngularJS

前端 未结 4 1737
耶瑟儿~
耶瑟儿~ 2020-12-16 14:20

This code in a simple HTML file works:


         


        
4条回答
  •  我在风中等你
    2020-12-16 15:06

    Call your function with ng-init

    var app = angular.module('app',[]);
    app.controller('myController', function($scope){
        $scope.load = function () {
            alert("load event detected!");
        }
    });
    
    

提交回复
热议问题