So, I was working on this to learn how to get WebAPI to work with Angular.
I finally (for the hell of it) switched to IE. Suddenly, I could step in. That was good.
$scope.correctAnswer = (data === "true");
Can you figure out the error? You don’t need to know what the WebAPI controller returns. I mean, you do, but if you look at it, you can figure it out.
That’s right. data === “true” is significantly different from data === true.
Now, once I stepped in, I could figure it out in a second (or three). But a compile time error would have been nice (yes, I know, I’m old).
Does Typescript work with Angular?