script not running in templateurl

前端 未结 2 2019
迷失自我
迷失自我 2021-01-22 02:46

This is my angular js file

test.js file:

var app = angular.module(\"angleapp\", [])
.controller(\'MainController\', [\'$scope\', function ($scope) {
             


        
2条回答
  •  独厮守ぢ
    2021-01-22 03:25

    In partials html page(test.html), No need to write doctype, head and body tags. Just write your html elements and script. It should work.

提交回复
热议问题