angular js demo: init, http, scope, service