See here for example: http://www.johnpapa.net/angularjss-controller-as-and-the-vm-variable/
As the title suggests, I\'m following along on this tutorial [http://tech
you can also do this:
it("should assign Dashboard as title", function () { var controller = controller("dashboard as vm", { $scope: scope }); expect(scope.vm.title).toBe("Dashboard"); });