1
I’m trying to do something simple on Plunker which is to load the contents of home html. in index.html, however, is giving error.
Before it was not working even this line of code(when put the ngRoute but after adding the required lib worked):
var app = angular.module('plunker', ['ngRoute']);
Now it’s these lines that are giving trouble:
app.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/home', {
templareUrl: 'home.html'
})
}]);
The goal is simple: to call home.html content in index.html
Follow the link: https://plnkr.co/edit/baHrKC2l0S8nCaHoacsb
Very important to highlight the issue of the same versions!!! And also stressed the error in the syntax of templateUrl and that in fact I made a mistake! Perfect! Very grateful!!!
– Wesley Redfield
@Wesleyredfield the issue of the version I already broke my head a lot because of it. As for the error in the templateUrl is normal, this is solved by increasing the dose of coffee. You are welcome!!!
– Alisson