jadjoubran/laravel5-angular-material-starter

View on GitHub
angular/app/components/app-header/app-header.component.js

Summary

Maintainability
A
0 mins
Test Coverage
class AppHeaderController{
    constructor($sce){
        'ngInject';

        this.$sce = $sce;
    }

    $onInit(){
        //defer iframe loading
        let url = 'https://ghbtns.com/github-btn.html?user=jadjoubran&repo=laravel5-angular-material-starter&type=star&count=true&size=large';
        this.githubWidget = this.$sce.trustAsResourceUrl(url);
    }
}

export const AppHeaderComponent = {
    templateUrl: './views/app/components/app-header/app-header.component.html',
    controller: AppHeaderController,
    controllerAs: 'vm',
    bindings: {}
}