;

import angular from 'angular';

function genComponentConf() {
    let template = `
        <nav class="create-need-title" ng-cloak ng-show="{{true}}">
            <div class="cntb__inner">
                <a class="cntb__inner__left clickable" ng-click="self.back()">
                    <img  src="generated/icon-sprite.svg#ico27_close" class="cntb__icon">
                </a>
                <h1 class="cntb__inner__center cntb__title">Compose Your Posting</div>
            </div>
        </nav>
    `;

    class Controller {
        constructor() {
            //this.testVar = 42;
        }
        back() { window.history.back() }
    }

    return {
        restrict: 'E',
        controller: Controller,
        controllerAs: 'self',
        template: template,
        bindToController: true, //scope-bindings -> ctrl
        scope: { }
    }
}

export default angular.module('won.owner.components.createNeedTitleBar', [])
    .directive('wonCreateNeedTitleBar', genComponentConf)
    .name;

;

import angular from 'angular';

function genComponentConf() {
    let template = `
        <nav class="create-need-title" ng-cloak ng-show="{{true}}">
            <div class="cntb__inner">
                <a class="cntb__inner__left clickable" ng-click="self.back()">
                    <img  src="generated/icon-sprite.svg#ico27_close" class="cntb__icon">
                </a>
                <h1 class="cntb__inner__center cntb__title">"Hello, everyone, …"</div>
            </div>
        </nav>
    `;

    class Controller {
        constructor() {
            //this.testVar = 42;
        }
        back() { window.history.back() }
    }

    return {
        restrict: 'E',
        controller: Controller,
        controllerAs: 'self',
        template: template,
        bindToController: true, //scope-bindings -> ctrl
        scope: { }
    }
}

export default angular.module('won.owner.components.createNeedTitleBar', [])
    .directive('wonCreateNeedTitleBar', genComponentConf)
    .name;

Fix need creation title