Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71990109
bcu-lang-switch.module.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 14, 03:00
Size
929 B
Mime Type
text/html
Expires
Tue, Jul 16, 03:00 (2 d)
Engine
blob
Format
Raw Data
Handle
19021470
Attached To
rPRIMOIII Primo_3_package
bcu-lang-switch.module.js
View Options
/**
* @ngdoc module
* @name bcuLangSwitchModule
*
* @description
* - Add LangSwitch to user area
* @example
* each view
*
*/
import
{
bcuLangSwitchController
}
from
'./bcu-lang-switch.controller'
;
export
const
bcuLangSwitchModule
=
angular
.
module
(
'bcuLangSwitchModule'
,
[])
.
controller
(
'bcuLangSwitchController'
,
bcuLangSwitchController
)
.
component
(
'bcuLangSwitchComponent'
,
{
bindings
:
{
afterCtrl
:
'<'
},
controller
:
'bcuLangSwitchController'
,
// template: '<button class="md-button md-lang-button" ng-repeat="(lang, url) in $ctrl.languages" ng-class="{active: $ctrl.afterCtrl.parentCtrl.lang == lang}"><a href="{{url}}">{{lang}}</a></button>'
template
:
'<button class="md-button md-lang-button" ng-repeat="lang in $ctrl.languages" ng-class="{active: $ctrl.afterCtrl.parentCtrl.lang == lang}" ng-click="$ctrl.changeLanguage(lang)">{{lang}}</button>'
})
Event Timeline
Log In to Comment