This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: 1.12.0 update deps yarn protractor side config-const new side module proper mini component bower updates #511: component sub-generator - test file and updated main.scss component-subgenerator: basic implementation Revert "break build" break build turn slack integration back on turn slack integration back on #511 component sub-generator - mini component example Revert "#487 travis, run protractor - give it another go travis-ci/travis-ci#272 (comment)" #487 travis, run protractor - give it another go travis-ci/travis-ci#272 (comment) #495 travis, mattermost - also add gitter webhook #495 travis - mattermost integration
- Loading branch information
Showing
14 changed files
with
94 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mini { | ||
display:block; | ||
|
||
.green { | ||
color: green; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h4>Your mini component</h4> | ||
currentState: <span class="green">{{ ctrl.currentState }}</span> | ||
<br> | ||
content: {{ ctrl.content }} | ||
<br><br> | ||
transcluded content: | ||
<div ng-transclude> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
angular.module('main') | ||
.component('mini', { | ||
templateUrl: 'main/components/mini/mini-component.html', | ||
restrict: 'EA', | ||
transclude: true, | ||
bindings: { | ||
content: '=', // bind via attribute | ||
}, | ||
controllerAs: 'ctrl', // enable controllerAs syntax | ||
controller: function ( | ||
$scope, | ||
$state | ||
) { | ||
// retrieve some info via dependency injection | ||
this.currentState = $state.current.name; | ||
} | ||
}); |
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 +1,4 @@ | ||
|
||
|
||
// added via yo m-ionic:component subgenerator | ||
@import '../components/mini/mini-component'; |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
describe('module: main, component: mini', function () { | ||
var $componentController; | ||
|
||
beforeEach(module('main')); | ||
beforeEach(inject(function (_$componentController_) { | ||
$componentController = _$componentController_; | ||
})); | ||
|
||
it('controller exists', function () { | ||
// Here we are passing actual bindings to the component | ||
var ctrl = $componentController('mini'); | ||
|
||
expect(ctrl).toBeDefined(); | ||
}); | ||
}); |
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