Directory Structure is here. I can't show it because of insufficient reputation score.
Base Controller
myApp.controller("BaseController", ["$scope", function($scope) {
$scope.Navigation = [];
$scope.NavigationUrl = "Templates/Partials/Include/Navigation.html";
}]);
Login Page Html
<div ng-include="NavigationUrl"></div>
then the html for login Page
Master blade
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container" ng-controller="BaseController">
<div ng-view></div>
</div>
<script type='text/javascript' src='{!! asset("bower_components/angular/angular.min.js") !!}'></script>
<script type='text/javascript' src='{!! asset("bower_components/angular-route/angular-route.min.js") !!}'></script>
<script type='text/javascript' src='{!! asset("bower_components/angular-cookies/angular-cookies.min.js") !!}'></script>
<script type='text/javascript' src='{!! asset("App/Controller/BaseController/BaseController.js") !!}'></script>
</body>
</html>
When I see login page, I got 404 error for navigation.html.
Am I missing something?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire