Skip to content

Instantly share code, notes, and snippets.

@amineeg
amineeg / app.js
Created February 27, 2014 22:01
Get started angularJs, send data from angularJs to Php, decode json data in php, best practice
'use strict';
// Declare app level module which depends on filters, and services
var app= angular.module('myApp', ['ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/login', {templateUrl: 'partials/login.html', controller: 'loginCtrl'});
$routeProvider.otherwise({redirectTo: '/login'});
}]);
.animated{
visibility: hidden;
}
.visible{
visibility: visible;
}