• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • Last Modified:

angular http request

question, Im new angularjs and my http api request worked with angular 2.1 but with the latest it does not work. nor can I use my module.


and help why it stopped working would be great.
Seven price
Seven price
1 Solution
Updated : http://jsfiddle.net/f89jbcry/4/

var myAppModule = angular.module('myApp',[]);
var MainCtrl = function($scope, $http) {

  var onUserComplete = function(response) {
    $scope.user = response.data;

  $scope.message = "hello,sev"; 

var myCtrl = myAppModule.controller("MainCtrl", MainCtrl);

var mytest = function($scope) {
    $scope.newline = "whats up";

Open in new window

Seven priceFull StackAuthor Commented:
thanks  i would not think I had to add another var to module.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now