Angular error

Asked

Viewed 161 times

1

Request URL:http://127.0.0.1:8080/itcd-intranet-ui

Request Method:GET

Status Code:404 Not Found

Remote Address:127.0.0.1:8080

Referrer Policy:no-referrer-when-downgrade

Response Headers

view source

Connection:Keep-Alive

Content-Length:74

Content-Type:text/html

Date:Mon, 13 Nov 2017 17:37:44 GMT

Server:Wildfly/10

X-Powered-By:Undertow/1

Request Headers

view source

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8

Accept-Encoding:gzip, deflate, br

Accept-Language:en,en;q=0.9,en-US;q=0.8,en;q=0.7

Cache-Control:max-age=0

Connection:Keep-Alive

Host:127.0.0.1:8080

Upgrade-Insecure-Requests:1

User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) Applewebkit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36

Image-wise:

The route is like this:

if (config == undefined)
    var config = {};
config.routes = function($routeProvider) {
    $routeProvider.when('/', {
        templateUrl : 'views/home.html',
        caseInsensitiveMatch : true,
        requiresAuthentication : false
    }).otherwise({
        // templateUrl: 'views/404.html',
        template : "<div>página não encontrada</div>",
    });
};

index.html looks like this:

<!DOCTYPE html>
<html ng-app="desif-ui" >
<head>
<body layout="column">

<!--CONFIGS-->
<script src="config/routes.js"></script>

<!--ASSETS-->
<script src="js/angular.min.js"></script>
<script src="js/angular-locale_pt-br.js"></script>
<script src="js/angular-route.min.js"></script>
<script src="js/angular-touch.min.js"></script>
<script src="js/angular-animate.min.js"></script>
<script src="js/angular-aria.min.js"></script>
<script src="js/angular-messages.min.js"></script>
</body>
</head>
</html>

Erro no angular

Retorno rest

Servidor Wildfly

The project has 4 subprojects desif-api, where are the Rest. desif-core, are the models, dto, repository and services. desif-ui, where is the angular.

  • I think the URL http://127.0.0.1:8080/itcd-intranet-ui is wrong, and the right one would be http://127.0.0.1:8080/desif-ui.

  • That’s right: http://127.0.0.1:8080/desif-ui. The image is wrong, but I try this: http://127.0.1:8080/desif-ui and it doesn’t work.

  • The project is at this link: http://www.netsoft.eti.br/desif/desif.zip.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.