Created
October 10, 2015 14:42
-
-
Save amielucha/2f929b5a3240ccd12c45 to your computer and use it in GitHub Desktop.
AngularJS ♥ WordPress Tutorial part 4 #tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| var app = angular.module('angular♥wp', ['ngRoute']); | |
| app.config(function($routeProvider, $locationProvider){ | |
| // Enable html5 mode | |
| $locationProvider.html5Mode(true); | |
| // configure routing | |
| $routeProvider.when('/', { | |
| templateUrl: 'content.html', | |
| controller: 'Main', | |
| }); | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment