Fragment A does not work, most likely due to the way the controller is connected. I accept wild assumptions here.
Where you add ng-controller , it should look something like this:
<body ng-controller="dishDetailController as dish">
Where could you do this:
<body ng-controller="dishDetailController">
It cannot be a body tag, it can be a div or something else.
And to better understand it inside the fragment, the Controller tried:
var app = angular.module('confusionApp',[]); app.controller('dishDetailController', function() { this = {
Otherwise, you may need to write: {{dish.dish.stuff}} inside the template.
jmunsch
source share