These are chat archives for filearts/plunker

20th
May 2017
randy-orton
@randy-orton
May 20 2017 01:06
hi
can any one help me regarding session time out plugun in nagular js
Marcus Silva
@MarcusSilvaBH
May 20 2017 12:38

Hi, there! I'm trying to use partials, but isn't working:

Estou usando assim, mas não está chamando minhas parciais:

myApp.config(function($stateProvider, $urlRouterProvider) {

$urlRouterProvider.otherwise('/home');

$stateProvider
.state("home", {
url: "/home",
templateUrl: "home.html",
controller: "HomeController",
});

$stateProvider
.state("about", {
url: "/about",
templateUrl: "about.html",
controller: "AboutController",
});
$stateProvider
.state("contact", {
url: "/contact",
templateUrl: "contact.html",
controller: "ContactController",
});
});

myApp.controller('HomeController', function($scope, $location) {
$scope.message = 'Home Controller!';
});

myApp.controller('AboutController', function($scope) {
$scope.message = 'About Controller.';
});

myApp.controller('ContactController', function($scope) {
$scope.message = 'Contact Controller';
});

My html files are created and in place, I can't understand why it doesn't work!
Anyone can help me?