Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/templates/src/app/_index.config.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.config ($logProvider, toastr) ->
'ngInject'
# Enable log
$logProvider.debugEnabled true
# Set options third-party lib
Expand Down
3 changes: 2 additions & 1 deletion app/templates/src/app/_index.run.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.run ($log) ->
'ngInject'
$log.debug 'runBlock end'
13 changes: 7 additions & 6 deletions app/templates/src/app/_ngroute/__ngroute.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.config ($routeProvider) ->
'ngInject'
$routeProvider
.when "/",
templateUrl: "app/main/main.html"
controller: "MainController"
controllerAs: "main"
.when '/',
templateUrl: 'app/main/main.html'
controller: 'MainController'
controllerAs: 'main'
.otherwise
redirectTo: "/"
redirectTo: '/'
13 changes: 7 additions & 6 deletions app/templates/src/app/_uirouter/__uirouter.coffee
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.config ($stateProvider, $urlRouterProvider) ->
'ngInject'
$stateProvider
.state "home",
url: "/"
templateUrl: "app/main/main.html"
controller: "MainController"
controllerAs: "main"
.state 'home',
url: '/'
templateUrl: 'app/main/main.html'
controller: 'MainController'
controllerAs: 'main'

$urlRouterProvider.otherwise '/'
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.factory 'githubContributor', ($log, $http) ->
'ngInject'
apiHost = 'https://api.github.com/repos/Swiip/generator-gulp-angular'

getContributors = (limit) ->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.directive 'acmeMalarkey', ->

MalarkeyController = ($log, githubContributor) ->
'ngInject'
vm = this

activate = ->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
angular.module "<%- appName %>"
angular.module '<%- appName %>'
.directive 'acmeNavbar', ->

NavbarController = (moment) ->
'ngInject'
vm = this
# "vm.creation" is avaible by directive option "bindToController: true"
vm.relativeDate = moment(vm.creationDate).fromNow()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module "<%- appName %>"
.service "webDevTec", () ->
angular.module '<%- appName %>'
.service 'webDevTec', () ->
'ngInject'
data = <%- technologies %>

getTec = ->
Expand Down
5 changes: 3 additions & 2 deletions app/templates/src/app/main/_main.controller.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
angular.module "<%- appName %>"
.controller "MainController", ($timeout, webDevTec, toastr) ->
angular.module '<%- appName %>'
.controller 'MainController', ($timeout, webDevTec, toastr) ->
'ngInject'
vm = this
activate = ->
getWebDevTec()
Expand Down