export default function() {
return {
restrict: 'E',
scope: {
info: '='
},
template: require('build/template/login.html') // Функция вернёт строку, которая будет содержать весь html
};
}
if($scroll < scroll_amount_for_fixed_hiding){
$j('header.page_header').removeClass('scrolled');
}else{
$j('header.page_header').addClass('scrolled');
}
angular.module('app')
.controller('switchView', function() {
this.tabs = ['tab1', 'tab2'];
this.addTab = function (tabContent) { return this.tabs.push(tabContent); };
this.delTab = function () { return this.tabs.pop(); };
})