AngularJS Multiple ng-app within a page

后端 未结 13 2229
闹比i
闹比i 2020-11-22 01:48

I have just started learning Angular JS and created some basic samples however I am stuck with the following problem.

I have created 2 modules and 2 controllers.

13条回答
  •  别那么骄傲
    2020-11-22 02:22

    Here's an example of two applications in one html page and two conrollers in one application :

        

    controller 1 in app 1 {{s1.title}} !

    controller 2 in app 1 {{s2.valeur}} !


    controller 1 in app 2
    First Name:
    Last Name :
    Hello : {{student.fullName()}}

提交回复
热议问题