Open mangreen opened 9 years ago
https://github.com/balderdashy/sails/issues/610
解決Angular在Sails中取得View 設置routes
// config/routes.js '/partials/:folder/:file' : { controller : 'index', action : 'partials_with_folder'},
設置controller
// api/controllers/:indexController.js partials_with_folder: function (req,res) { res.render('partials/'+ req.param('folder') + '/' + req.param('file')) }
https://github.com/balderdashy/sails/issues/610
解決Angular在Sails中取得View 設置routes
設置controller