Tagged Questions
1
vote
1answer
2k views
Using resolve in $routeProvider causes 'Unknown provider …'(Solved)
SEE SOLUTION AT THE BOTTOM OF THIS POST
So I am trying to do an asynchronous http request to load some data before my app loads and so I am using a resolve in $routeProvider which is an http request ...
6
votes
1answer
1k views
AngularJS - use routeProvider “when” variables to construct templateUrl name?
So this is what I am trying to accomplish:
'use strict';
var app = angular.module('myModule', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
redirectTo: ...
2
votes
1answer
258 views
ngGrid not displayed when used with route provider
Below is my HTML and the code to do a web service call and display the data in ngGrid. The problem is with the route provider, I'm not being able to show the grid in my separate view, but if I do the ...
0
votes
0answers
95 views
How to Replace one div controller to another after condition match Angular.js
i have two with two ng-controller
<div ng-controller="ctr2"></div>
<div ng-controller="ctr1">
<form name="form1" ng-show="login" method="post" action="home.jsp" ...