1
I’m making an application with Angularjs. I have pages being called, however, a single, does not appear.
Follow my codes:
app js.
var app = angular.module("vc", ["ui.router"]);
app.config(function($stateProvider){
$stateProvider
.state("login", {
url:"/",
controller: "LoginController",
templateUrl: "admin/views/login.html"
})
.state("painel", {
url: "/painel",
controller: "PainelController",
templateUrl: "admin/views/painel.html"
})
.state("usuario", {
url: "/usuario",
controller: "UsuarioController",
templateUrl: "admin/views/usuario.html"
})
.state("paises", {
url: "/paises",
controller: "PaisesController",
templateUrl: "admin/views/paises.html"
})
.state("atualizarUsuario", {
url: "/atualizarUsuario",
controller: "AtualizarUsuarioController",
templateUrl: "admin/views/atualizarUsuario.html"
})
})
index.html
<html ng-app="vc">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="css/vc.css">
<body>
<div ui-view></div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.js"></script>
<script src="admin/js/app.js"></script>
<script src="admin/js/loginController.js"></script>
<script src="admin/js/painelController.js"></script>
<script src="admin/js/usuarioController.js"></script>
<script src="admin/js/atualizarUsuarioController.js"></script>
</html>
Follow print of where the . html files are
And print of the user.html structure where you have the link to the page that does not appear
how Voce type the url to access the app?
– celsomtrindade
http://localhost:8888/systems/systems_web/Vigilantescomunitarios/index.html#/updateUsuario/2
– GustavoSevero
Nothing appears in the browser console?
– Marco Aurélio Deleu
No, nothing appears on the console. I’m very intrigued by this. Is the way to redo this part again? Because when there is no mistake, the way is to redo and the thing works hehehe
– GustavoSevero