【发布时间】:2017-02-01 12:53:04
【问题描述】:
您好,我在 angular.js 中调用保存在烧瓶模板文件夹中的模板但不起作用,如何从烧瓶中获取 js 中的静态文件?
var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui.grid.expandable', 'ui.grid.selection', 'ui.grid.pinning', 'ui.grid.pagination']);
app.controller('ThirdCtrl', ['$scope', '$http', '$log', function ($scope, $http, $log) {
$scope.gridOptions = {
paginationPageSizes: [25, 50, 75],
paginationPageSize: 25,
expandableRowTemplate: "/templates/expandableRowTemplate.html",
...
【问题讨论】:
-
你可以添加你的烧瓶代码,或者更多的代码吗?
-
解决了@ZombieChowder
标签: javascript python angularjs flask