[Solved] Error: [ng:areq] Argument ‘fn’ is not a function, got string
SOLVED I added this library: <script src=”https://stackoverflow.com/questions/51248557/bower_components/angular-ui-router/release/angular-ui-router.js”></script> app.js is updated ‘use strict’; (function () { let myApp = angular.module(‘myApp’, [‘ui.router’]); myApp.controller(‘userController’, [‘$http’, function ($http) { let vm = this; $http.get(“http://localhost:8080/Market/users”).then(function (response) { vm.usersForm = response.data; }) }]); myApp.config(‘$stateProvider’, [ function($stateProvider) { $stateProvider.state(‘index’, { url: “http://localhost:63342/demo2/app/”, templateUrl: “index.html”, controller: “userController” }) }]); }()); index.html is updated … Read more