Okey, please be patience. I only know jquery and I heard that use AngularJS is something that I should try.
So, what I need to to is visit a page on my local host "../asp/fases/fases-controler.asp"
parse the json that this page shows me ( that is something like this: { "fasekind": [ "AAA", "BBB", "CCC" ] }
) and then mount on client side a list like this:
<ul>
<li><input type="checkbox" /> <label>AAA</label></li>
<li><input type="checkbox" /> <label>BBB</label></li>
<li><input type="checkbox" /> <label>CCC</label></li>
</ul>
I do need a help with this. I only know the jQuery way. I have seen so many tutorials but I don't get it. I receive always Uncaught ReferenceError: $http is not defined
and other erros messages.
I don't want someone to do that for me, I just need to figure out how it works.
js controller that I try... it does not work at all.
var app = angular.module("app", []);
app.controller("AppCtrl", function ($http) {
var app = this;
$http.get("../asp/fases/fases-controler.asp")
.success(function (data) {
app.fases = data;
})
})