Sha256: 973449c4c395a812f98f3cf18671a4ad6ca164bbe29b0fe219d73716b2faf2ff
Contents?: true
Size: 841 Bytes
Versions: 3
Compression:
Stored size: 841 Bytes
Contents
// Main Application Module // ----------------------- // This module is the start point of application. var App = angular.module("Application", ["ngAnimate", "gettext", "ui.router"]); // configuration section --------------------------- App.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){ $urlRouterProvider.otherwise("/"); // Configuring application index route. // Add any route you need here. $stateProvider. state("root", { url: "/", templateUrl: template_url("main"), controller: "MainController" }); }]); App.controller("MainController", ["$scope", "gettext", function($scope, gettext){ // Main controller of application. This controller is responsible for `/` url $scope.msg = gettext("Hello world"); }]);
Version data entries
3 entries across 3 versions & 1 rubygems