AngularJS ng-controller not working

前端 未结 8 1429
日久生厌
日久生厌 2020-12-09 16:30

I just now started learning on AngularJS from w3schools. I am trying to practice examples what ever they have mentioned in the tutorials. Every thing works fine but when i c

8条回答
  •  悲&欢浪女
    2020-12-09 17:07

    I just modified your js fiddle. Please check the fiddle example

    function personController($scope) {
        $scope.firstName= "John";
        $scope.lastName= "Doe";
    }
    

    There was no issue with your code except JS fiddle settings from onLoad to No wrap - in head

    enter image description here

提交回复
热议问题