是否可以根据路由组动态加载控制器,它的js文件和模板?Psuedo代码不起作用:
$routeProvider.when('/:plugin', function(plugin) {
templateUrl: 'plugins/' + plugin + '/index.html',
controller: plugin + 'Ctrl',
resolve: { /* Load the JS file, from 'plugins/' + plugin + '/controller.js' */ }
});
Run Code Online (Sandbox Code Playgroud)
我已经看到很多类似这样的问题,但是没有基于路由组加载js文件/控制器的问题.
string query = "update User u set u.PointsTotal = 1 join u.Rounds r where r.RoundId = :round and (r.Row1 & :val) > 0";
NHibernateSession.CreateQuery(query)
.SetByte("val", (byte)val)
.SetInt32("round", roundId)
.ExecuteUpdate();
Run Code Online (Sandbox Code Playgroud)
只是告诉我"给定的密钥不在字典中."
是的,关系按预期工作,可以做选择....