Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83162616
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, Sep 15, 12:57
Size
929 B
Mime Type
text/html
Expires
Tue, Sep 17, 12:57 (2 d)
Engine
blob
Format
Raw Data
Handle
20800452
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