Skip to content

Instantly share code, notes, and snippets.

angular.module('spaApp', ['ngRoute'])
.config(['$routeProvider',
function($routeProvider) {
$routeProvider
.when('/home', {
templateUrl: 'pages/home.html',
controller: 'HomeController'
})
.when('/about', {
templateUrl: 'pages/about.html',
<!DOCTYPE html>
<html ng-app="spaApp">
<head>
<title>Simple SPA</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.css" />
<script src="https://code.angularjs.org/1.2.25/angular.js"></script>
<script src="https://code.angularjs.org/1.2.25/angular-route.js"></script>
<div class="container-fluid">
<h2>{{flash}}</h2>
</div>
<?php
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class ViewsCommand extends Command {
/**
* The console command name.
*
* @var string
div.example {
display: block;
padding: 10px 20px;
color: black;
background: rgba(255, 255, 255, 0.4);
-webkit-border-radius: 8px;
-khtml-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
margin-bottom: 10px;