Skip to content

Commit 2e33a9c

Browse files
author
Faris Chebib
committed
init the angular router
1 parent 214a25d commit 2e33a9c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Diff for: _layouts/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" ng-app="utahPython">
33
<head>
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Diff for: _layouts/utahpython.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
22
layout: base
33
---
4-
<div class='container'>
4+
<div class='container' ui-view>
55
<div class="header clearfix">
66
<nav>
77
<ul class="nav nav-pills pull-right">
88
<li role="presentation" class="active">
9-
<a href="#">
9+
<a ui-sref="about">
1010
About
1111
</a>
1212
</li>
1313
<li role="presentation">
14-
<a href="#">
14+
<a ui-sref="meetups">
1515
Meetups
1616
</a>
1717
</li>
1818
<li role="presentation">
19-
<a href="#">Past Presentations</a>
19+
<a ui-sref="past_present">Past Presentations</a>
2020
</li>
2121
</ul>
2222
</nav>
2323
<h3 class="text-muted">Utah Python</h3>
2424
</div>
2525

26-
<div class="row marketing">
26+
<div class="row marketing" ui-view>
2727
{{ content }}
2828
</div>
2929

Diff for: static/js/controller.js

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
'use strict';
2+
3+
angular.module('utahPython', ['ui.router']);

0 commit comments

Comments
 (0)