Introduction to Angular JS
Why Stack Overflow recommends it
Stack Overflow users link it as the beginner tutorial they were following when they hit AngularJS routing errors, such as the unknown routeProvider or non-working $routeProvider problems.
Recommended by 0 people across 0 different months, 2014 to 2014.
What it is
A 50-minute screencast by David Mosher that builds a sample application with AngularJS to teach the basics, with commentary contrasting it against jQuery and Backbone.JS. It is part 1 of a five-part series that goes on to cover end-to-end work, security, Grunt workflows and testing.
What people said
Cites Jonas Petersson · 2014-05 · Stack Overflow · on “Gets redirected to default app route when deleting comment using Angular JS and Laravel”
I am developing an application using Laravel and AngularJS where users may write and delete their comments. On the home screen, the user is able to view and delete all of his/her comments and when they do the list should be updated. My problem is that when I press the delete button I am redirected to the login page which is the default route. $routeProvider.otherwise({ redirectTo : '/login' }); I'm using laravels resource controller Route::resource('comment', 'CommentController'); When I go to the home page again the comment is successfully deleted. My comment service uses this to delete a comment: app.factory('CommentService', function($http) { return { destroy: function(id) { return $http.
Cites user3651267 · 2014-07 · Stack Overflow · on “Angular routeProvider not working”
I am following a basic tutorial to learn Angular Js here [this video] To cut in short i am creating a main page(index.html) and another page(login.html). I wrote the basic html but for instance i`ll share the important lines that effects Angular. app.js var app = angular.module("app", []).config(function($routeProvider){ $routeProvider.when('/login', { templateUrl: 'login.html', controller: 'LoginController' }); $routeProvider.otherwise({redirectTo : '/login'}); }); app.controller('LoginController', function(){ // To be left blank at the moment. }); Login.html <div id="login" class="row"> <div class="large-3 large-offset-3"> <form> <fieldset class="radius"> <div class="row"> <div class="large-6 c
Cites Anders Juul · 2014-11 · Stack Overflow · on “Dependency error in angularjs”
I'm new to angularjs/js and trying to follow an example in introduction video, but in spite of copying the example, I get errors that does not appear in demonstration video. The error I get is 'unknown provider routeProvider'. Can someone explain why I get the error -- and not least how I resolve it? thanks, Anders <!DOCTYPE html> <html data-ng-app="app"> <head> <title></title> <script src="angular.min.js"></script> <script src="angular-route.min.js"></script> <script > var app = angular.module("app", []); app.config(function ($routeProvider) { }); </script> </head> <body> </body> </html> [this video]