是否可以在同一个html文件中多次使用AngularJS模块? 例如:
Schema::create('fees', function (Blueprint $table) {
$table->increments('fee_id');
$table->unsignedInteger('academic_id');
$table->unsignedInteger('level_id');
$table->unsignedInteger('fee_type_id');
$table->string('fee_heading',200)->nullable();
$table->float('amount', 8, 2);
$table->foreign('academic_id')->references('academic_id')->on('academics');
$table->foreign('level_id')->references('level_id')->on('levels');
$table->foreign('fee_type_id')->references('fee_type_id')->on('feestype');
});
感谢您的帮助!
答案 0 :(得分:0)
您可以使用手动引导程序(按ID)执行此操作:删除第二个ng-app =“ theApp”,然后添加angular.element(document).ready(function() { angular.bootstrap(document.getElementById("div2"), ['theApp']);});
感谢Aleksey Solovey