-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(angularjs): Do not use .component('foo', new Foo())
- Loading branch information
1 parent
14bf52b
commit 3ffa4fb
Showing
96 changed files
with
757 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
app/scripts/modules/appengine/src/common/loadBalancerMessage.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { module } from 'angular'; | ||
|
||
class AppengineLoadBalancerMessageComponent implements ng.IComponentOptions { | ||
public bindings: any = { showCreateMessage: '<', columnOffset: '@', columns: '@' }; | ||
public templateUrl: string = require('./loadBalancerMessage.component.html'); | ||
} | ||
const appengineLoadBalancerMessageComponent: ng.IComponentOptions = { | ||
bindings: { showCreateMessage: '<', columnOffset: '@', columns: '@' }, | ||
templateUrl: require('./loadBalancerMessage.component.html') | ||
}; | ||
|
||
export const APPENGINE_LOAD_BALANCER_CREATE_MESSAGE = 'spinnaker.appengine.loadBalancer.createMessage.component'; | ||
|
||
module(APPENGINE_LOAD_BALANCER_CREATE_MESSAGE, []).component( | ||
'appengineLoadBalancerMessage', | ||
new AppengineLoadBalancerMessageComponent(), | ||
appengineLoadBalancerMessageComponent, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...cripts/modules/appengine/src/serverGroup/configure/wizard/dynamicBranchLabel.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { module } from 'angular'; | ||
|
||
class AppengineDynamicBranchLabelComponent implements ng.IComponentOptions { | ||
public bindings: any = { trigger: '<' }; | ||
public template = ` | ||
const appengineDynamicBranchLabelComponent: ng.IComponentOptions = { | ||
bindings: { trigger: '<' }, | ||
template: ` | ||
<span ng-if="$ctrl.trigger.type === 'git'"> | ||
Resolved at runtime by <b>{{$ctrl.trigger.source}}</b> trigger: {{$ctrl.trigger.project}}/{{$ctrl.trigger.slug}}<span ng-if="$ctrl.trigger.branch">:{{$ctrl.trigger.branch}}</span> | ||
</span> | ||
<span ng-if="$ctrl.trigger.type === 'jenkins'"> | ||
Resolved at runtime by <b>Jenkins</b> trigger: {{$ctrl.trigger.master}}/{{$ctrl.trigger.job}} | ||
</span> | ||
`; | ||
} | ||
` | ||
}; | ||
|
||
export const APPENGINE_DYNAMIC_BRANCH_LABEL = 'spinnaker.appengine.dynamicBranchLabel.component'; | ||
module(APPENGINE_DYNAMIC_BRANCH_LABEL, []).component( | ||
'appengineDynamicBranchLabel', | ||
new AppengineDynamicBranchLabelComponent(), | ||
appengineDynamicBranchLabelComponent, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.