Trying to learn AngulareJS got stuck with this.
This is the code :
app.config(function ($routeProvider){
$routeProvider
.when('/',
{
templateUrl: '/sort',
controller : 'tasksController'
})
.when('/expression/:expressionId/type/:typeId',
{
templateUrl: '/sort/'+:expressionId +'/'+ :typeId,
controller : 'tasksController'
})});
This is obviously wrong.
Can any one please tell me what is the correct way to do this? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…