Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- (function() {
- angular.module('realEstate', ['ngAnimate', 'ngRoute']);
- })();
- }).call(this);
- (function() {
- (function() {
- var config;
- config = function($routeProvider, $locationProvider) {
- $routeProvider.when('/', {
- templateUrl: 'index.html'
- }).when('/inserzioni/:idInserzione*', {
- templateUrl: function(urlattr) {
- return 'views/inserzioni/' + urlattr.idInserzione + '.html';
- }
- }).when('/contatti', {
- templateUrl: 'views/contatti.html'
- }).otherwise({
- redirectTo: '/'
- });
- };
- angular.module('realEstate').config(config);
- })();
- }).call(this);
- (function() {
- (function() {
- var run;
- run = function($rootScope, $timeout, $window) {
- $rootScope.$on('$viewContentLoaded', function() {
- $timeout((function() {
- $window.scrollTo(0, 0);
- }), 300);
- });
- };
- run.$inject = ['$rootScope', '$timeout', '$window'];
- angular.module('realEstate').run(run);
- })();
- }).call(this);
- (function() {
- (function() {
- var AggregateController;
- AggregateController = function($http) {
- var vm;
- vm = this;
- vm.inserzioni = {};
- $http.get("inserzioni.json").success(data)(function() {
- vm.inserzioni = data;
- });
- };
- AggregateController.$inject = ['$http'];
- angular.module('app').controller('AggregateController', AggregateController);
- })();
- }).call(this);
Add Comment
Please, Sign In to add comment