Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocLazyLoad loads my directives twice #58

Closed
pooyaho opened this issue Aug 27, 2014 · 19 comments
Closed

ocLazyLoad loads my directives twice #58

pooyaho opened this issue Aug 27, 2014 · 19 comments

Comments

@pooyaho
Copy link

pooyaho commented Aug 27, 2014

Hi dear ocombe.
thanks a lot for your framework.
I have a problem with your framework when I then js files is loading in $routeProvider.
I have added my js files directives into index.html. and load the services and controllers using your framework. directives and controllers and services are defined in 'application' module. when I load js files using $ocLazyLoad, your framework runs the directive twice and I see this error:
Multiple directives [uiInputText, uiInputText] asking for template on: ......

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

Hi, any chance to see the code ? It's hard to know what the problem is without it.

@pooyaho
Copy link
Author

pooyaho commented Aug 27, 2014

........ directive

(function (module) {

    module.directive("uiInputText", ["$q", "$http", function ($q, $http) {

        return {
            restrict: "E",
            replace: true,
            transclude: false,
            templateUrl:'/app/templates/formInput.html' ,
            scope: {
                type: "@",
                label: "@",
                placeholder: "@",
                id: "@",
                validation: "@",
                state: "@",
                feedback: "@",
                value: "@",
                orientation: "@",
                labelSize: "@",
                model: '=',
                descriptor: '&?',
                disabled: "@"
            }
        }
    }]);
})(angular.module('application'));

............... loading in $routeProvider

                    $ocLazyLoad.load({
                        name:'application',
                        files:files,
                    }).then(function(){
                        defer.resolve();
                    });

comment: files are contain services and controllers path

........ and config of provider

        $ocLazyLoadProvider.config({
            events: true,
            debug: true,
            cache:true
        });

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

Could you post the complete $routeProvider config please ?

@pooyaho
Copy link
Author

pooyaho commented Aug 27, 2014

    (function (module) {
        module.config(['$locationProvider', '$routeProvider', 'translationProvider', '$provide', '$controllerProvider', function ($locationProvider, $routeProvider, translationProvider, $provide, $controllerProvider) {
            $routeProvider
                .when('/', {
                    redirectTo: '/home',
                    resolve: {
                        load: function ($http, $q, propertyFileReader,$ocLazyLoad) {
                            return loadModules($http, $q, propertyFileReader,$ocLazyLoad);
                        }

                    }
                })
                .when('/:page*', {
                    templateUrl: function (parameters) {
                        var page = parameters.page;
                        if (!/\.html$/.test(page)) {
                            page = page + ".html";
                        }
                        return "/app/view/" + page;
                    },
                    resolve: {
                        load: function ($http, $q, propertyFileReader,$ocLazyLoad) {
                            return loadModules($http, $q, propertyFileReader,$ocLazyLoad);
                        }
                    }
                });

            function loadModules($http, $q, propertyFileReader,$ocLazyLoad) {
                var defer = $q.defer();

                if (!$http.loaded) {
                    $http.get('/app/resources/controllers.properties').then(function (result) {
                        var properties = propertyFileReader(result.data);
                        var files=[];
                        angular.forEach(properties ,function(value,key){
                            files.push(key);
                        });

                        $ocLazyLoad.load({
                            name:'application',
                            files:files
                        }).then(function(){
                            defer.resolve();
                        });


                    });
                } else {
                    defer.resolve();
                }
                return  defer.promise;
            }
        }]);

    })(angular.module('application'));

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

Hmm I don't really see any problem with your code. What is in the template "/app/templates/formInput.html" ?
The error seems to point to 2 directives trying to replace the same inner content of an element.
Any chance that you wrote something like

somewhere ? (two times the same directive on the same element), or
and the template containing another ui-input-text ?

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

Or do you see the directive file being loaded twice in the network tab of your code inspector ?

@pooyaho
Copy link
Author

pooyaho commented Aug 27, 2014

When I remove the ocLazyLoad from my project, everything seems good. this is the template and only that directive use it

    <div ng-class="{'form': orientation != 'inline','form-horizontal': orientation == 'horizontal', 'form-inline form-inline-container': orientation == 'inline'}">
        <div class="form-group"
             ng-class="{'has-feedback': feedback, 'has-success': state == 'valid', 'has-error': state == 'invalid', 'has-warning': state == 'warning', 'has-info': state == 'notice'}">
            <label for="{{id}}" ng-class="{'sr-only': orientation == 'inline'}"
                   class="control-label {{(orientation == 'horizontal') ? ('col-sm-' + labelSize) : ''}}"><span
                    ng-if="label">{{label}}</span><span
                    ng-if="!label && orientation == 'vertical'">&nbsp;</span></label>

            <div ng-show="orientation != 'inline'"
                 class="{{(orientation == 'horizontal') ? ('col-sm-' + (12 - labelSize)) : ''}}">
                <input id="{{id}}" ng-disabled="disabled" class="form-control" type="{{type}}"
                       placeholder="{{placeholder}}" ng-model="model"/>
                <span ng-if="feedback" class="glyphicon glyphicon-{{feedback}} form-control-feedback"></span>
            </div>
            <input ng-disabled="disabled" ng-show="orientation == 'inline'" id="{{id}}" class="form-control"
                   type="{{type}}" placeholder="{{placeholder}}" ng-model="model"/><span
                ng-if="orientation == 'inline' && feedback"
                class="glyphicon glyphicon-{{feedback}} form-control-feedback"></span>
        </div>
    </div>

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

do you see the directive file being loaded twice in the network tab of your code inspector ?

@pooyaho
Copy link
Author

pooyaho commented Aug 27, 2014

yes, when I debug the project, directives load twice

@pooyaho
Copy link
Author

pooyaho commented Aug 27, 2014

and I don't load directives using $ocLazyLoad

@ocombe
Copy link
Owner

ocombe commented Aug 27, 2014

In the console with debug:true you should see the components loaded with ocLazyLoad, is your directive listed ? It shouldn't since you don't lazy load it. If it does, could you post the complete log please ?

Could you also try the version 0.3.3 of ocLazyLoad and see if you have the same problem please ? https://github.com/ocombe/ocLazyLoad/releases/tag/0.3.3

@pooyaho
Copy link
Author

pooyaho commented Aug 30, 2014

ocLazyLoad.fileLoaded app/js/directives/uiInputText.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/ResearchProjectController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/ResearchProjectSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/ResearchCenterSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/ResearchCenterController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/ResearchProjectService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/DesignCenterService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/ResearchCenterService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/RelativeResearchCenterService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/TechnologyService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/TechnologySearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/TechnologyController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/EquipmentService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/DesignCenterController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/RelativeResearchCenterController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/DesignCenterSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/RelativeResearchCenterSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/EquipmentSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/EquipmentController.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/PersonSearchService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/services/ir/phsys/PersonService.js angular.js:10028
ocLazyLoad.fileLoaded app/js/controllers/ir/phsys/PersonController.js angular.js:10028
ocLazyLoad.moduleLoaded ng angular.js:10028
ocLazyLoad.componentLoaded $ocLazyLoad angular.js:10028
ocLazyLoad.componentLoaded ocLazyLoad angular.js:10028
ocLazyLoad.moduleLoaded oc.lazyLoad angular.js:10028
ocLazyLoad.componentLoaded checkmark angular.js:10028
ocLazyLoad.componentLoaded ngColumns angular.js:10028
ocLazyLoad.moduleLoaded ngGrid.filters angular.js:10028
ocLazyLoad.componentLoaded ngCellHasFocus angular.js:10028
ocLazyLoad.componentLoaded ngCellText angular.js:10028
ocLazyLoad.componentLoaded ngCell angular.js:10028
ocLazyLoad.componentLoaded ngEditCellIf angular.js:10028
ocLazyLoad.componentLoaded ngGridFooter angular.js:10028
ocLazyLoad.componentLoaded ngGridMenu angular.js:10028
ocLazyLoad.componentLoaded ngGrid angular.js:10028
ocLazyLoad.componentLoaded ngHeaderCell angular.js:10028
ocLazyLoad.componentLoaded ngHeaderRow angular.js:10028
ocLazyLoad.componentLoaded ngInput angular.js:10028
ocLazyLoad.componentLoaded ngRow angular.js:10028
ocLazyLoad.componentLoaded ngViewport angular.js:10028
ocLazyLoad.moduleLoaded ngGrid.directives angular.js:10028
ocLazyLoad.componentLoaded $domUtilityService angular.js:10028
ocLazyLoad.componentLoaded $sortService angular.js:10028
ocLazyLoad.componentLoaded $utilityService angular.js:10028
ocLazyLoad.moduleLoaded ngGrid.services angular.js:10028
ocLazyLoad.moduleLoaded ngGrid angular.js:10028
ocLazyLoad.componentLoaded bindHtmlUnsafe angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.bindHtml angular.js:10028
ocLazyLoad.componentLoaded $position angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.position angular.js:10028
ocLazyLoad.componentLoaded typeaheadParser angular.js:10028
ocLazyLoad.componentLoaded typeahead angular.js:10028
ocLazyLoad.componentLoaded typeaheadPopup angular.js:10028
ocLazyLoad.componentLoaded typeaheadMatch angular.js:10028
ocLazyLoad.componentLoaded typeaheadHighlight angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.typeahead angular.js:10028
ocLazyLoad.componentLoaded timepickerConfig angular.js:10028
ocLazyLoad.componentLoaded timepicker angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.timepicker angular.js:10028
ocLazyLoad.componentLoaded TabsetController angular.js:10028
ocLazyLoad.componentLoaded tabset angular.js:10028
ocLazyLoad.componentLoaded tab angular.js:10028
ocLazyLoad.componentLoaded tabHeadingTransclude angular.js:10028
ocLazyLoad.componentLoaded tabContentTransclude angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.tabs angular.js:10028
ocLazyLoad.componentLoaded ratingConfig angular.js:10028
ocLazyLoad.componentLoaded RatingController angular.js:10028
ocLazyLoad.componentLoaded rating angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.rating angular.js:10028
ocLazyLoad.componentLoaded $transition angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.transition angular.js:10028
ocLazyLoad.componentLoaded progressConfig angular.js:10028
ocLazyLoad.componentLoaded ProgressController angular.js:10028
ocLazyLoad.componentLoaded progress angular.js:10028
ocLazyLoad.componentLoaded bar angular.js:10028
ocLazyLoad.componentLoaded progressbar angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.progressbar angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.bindHtml angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.position angular.js:10028
ocLazyLoad.componentLoaded $tooltip angular.js:10028
ocLazyLoad.componentLoaded tooltipPopup angular.js:10028
ocLazyLoad.componentLoaded tooltip angular.js:10028
ocLazyLoad.componentLoaded tooltipHtmlUnsafePopup angular.js:10028
ocLazyLoad.componentLoaded tooltipHtmlUnsafe angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.tooltip angular.js:10028
ocLazyLoad.componentLoaded popoverPopup angular.js:10028
ocLazyLoad.componentLoaded popover angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.popover angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.tooltip angular.js:10028
ocLazyLoad.componentLoaded pagerConfig angular.js:10028
ocLazyLoad.componentLoaded paginationConfig angular.js:10028
ocLazyLoad.componentLoaded PaginationController angular.js:10028
ocLazyLoad.componentLoaded pagination angular.js:10028
ocLazyLoad.componentLoaded pager angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.pagination angular.js:10028
ocLazyLoad.componentLoaded $$stackedMap angular.js:10028
ocLazyLoad.componentLoaded modalBackdrop angular.js:10028
ocLazyLoad.componentLoaded modalWindow angular.js:10028
ocLazyLoad.componentLoaded $modalStack angular.js:10028
ocLazyLoad.componentLoaded $modal angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.modal angular.js:10028
ocLazyLoad.componentLoaded dropdownToggle angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.dropdownToggle angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.position angular.js:10028
ocLazyLoad.componentLoaded datepickerPopupConfig angular.js:10028
ocLazyLoad.componentLoaded datepickerConfig angular.js:10028
ocLazyLoad.componentLoaded DatepickerController angular.js:10028
ocLazyLoad.componentLoaded datepicker angular.js:10028
ocLazyLoad.componentLoaded datepickerPopup angular.js:10028
ocLazyLoad.componentLoaded datepickerPopupWrap angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.datepicker angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.position angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.transition angular.js:10028
ocLazyLoad.componentLoaded CarouselController angular.js:10028
ocLazyLoad.componentLoaded carousel angular.js:10028
ocLazyLoad.componentLoaded slide angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.carousel angular.js:10028
ocLazyLoad.componentLoaded buttonConfig angular.js:10028
ocLazyLoad.componentLoaded ButtonsController angular.js:10028
ocLazyLoad.componentLoaded btnRadio angular.js:10028
ocLazyLoad.componentLoaded btnCheckbox angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.buttons angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.bindHtml angular.js:10028
ocLazyLoad.componentLoaded AlertController angular.js:10028
ocLazyLoad.componentLoaded alert angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.alert angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.transition angular.js:10028
ocLazyLoad.componentLoaded collapse angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.collapse angular.js:10028
ocLazyLoad.componentLoaded accordionConfig angular.js:10028
ocLazyLoad.componentLoaded AccordionController angular.js:10028
ocLazyLoad.componentLoaded accordion angular.js:10028
ocLazyLoad.componentLoaded accordionGroup angular.js:10028
ocLazyLoad.componentLoaded accordionHeading angular.js:10028
ocLazyLoad.componentLoaded accordionTransclude angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.accordion angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.collapse angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.transition angular.js:10028
ocLazyLoad.moduleLoaded template/typeahead/typeahead-popup.html angular.js:10028
ocLazyLoad.moduleLoaded template/typeahead/typeahead-match.html angular.js:10028
ocLazyLoad.moduleLoaded template/timepicker/timepicker.html angular.js:10028
ocLazyLoad.moduleLoaded template/tabs/tabset.html angular.js:10028
ocLazyLoad.moduleLoaded template/tabs/tab.html angular.js:10028
ocLazyLoad.moduleLoaded template/rating/rating.html angular.js:10028
ocLazyLoad.moduleLoaded template/progressbar/progressbar.html angular.js:10028
ocLazyLoad.moduleLoaded template/progressbar/progress.html angular.js:10028
ocLazyLoad.moduleLoaded template/progressbar/bar.html angular.js:10028
ocLazyLoad.moduleLoaded template/popover/popover.html angular.js:10028
ocLazyLoad.moduleLoaded template/tooltip/tooltip-popup.html angular.js:10028
ocLazyLoad.moduleLoaded template/tooltip/tooltip-html-unsafe-popup.html angular.js:10028
ocLazyLoad.moduleLoaded template/pagination/pagination.html angular.js:10028
ocLazyLoad.moduleLoaded template/pagination/pager.html angular.js:10028
ocLazyLoad.moduleLoaded template/modal/window.html angular.js:10028
ocLazyLoad.moduleLoaded template/modal/backdrop.html angular.js:10028
ocLazyLoad.moduleLoaded template/datepicker/popup.html angular.js:10028
ocLazyLoad.moduleLoaded template/datepicker/datepicker.html angular.js:10028
ocLazyLoad.moduleLoaded template/carousel/slide.html angular.js:10028
ocLazyLoad.moduleLoaded template/carousel/carousel.html angular.js:10028
ocLazyLoad.moduleLoaded template/alert/alert.html angular.js:10028
ocLazyLoad.moduleLoaded template/accordion/accordion.html angular.js:10028
ocLazyLoad.moduleLoaded template/accordion/accordion-group.html angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap.tpls angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap angular.js:10028
ocLazyLoad.componentLoaded bu$registryFactory angular.js:10028
ocLazyLoad.componentLoaded bu$configuration angular.js:10028
ocLazyLoad.componentLoaded locale angular.js:10028
ocLazyLoad.componentLoaded propertyFileReader angular.js:10028
ocLazyLoad.componentLoaded translator angular.js:10028
ocLazyLoad.componentLoaded translate angular.js:10028
ocLazyLoad.componentLoaded translation angular.js:10028
ocLazyLoad.componentLoaded translationFunction angular.js:10028
ocLazyLoad.componentLoaded modal angular.js:10028
ocLazyLoad.componentLoaded user angular.js:10028
ocLazyLoad.componentLoaded todo angular.js:10028
ocLazyLoad.componentLoaded ModelService angular.js:10028
ocLazyLoad.componentLoaded messages angular.js:10028
ocLazyLoad.moduleLoaded services angular.js:10028
ocLazyLoad.moduleLoaded ng angular.js:10028
ocLazyLoad.componentLoaded $resource angular.js:10028
ocLazyLoad.moduleLoaded ngResource angular.js:10028
ocLazyLoad.moduleLoaded ng angular.js:10028
ocLazyLoad.componentLoaded $$animateReflow angular.js:10028
ocLazyLoad.moduleLoaded ngAnimate angular.js:10028
ocLazyLoad.componentLoaded $sanitize angular.js:10028
ocLazyLoad.componentLoaded linky angular.js:10028
ocLazyLoad.moduleLoaded ngSanitize angular.js:10028
ocLazyLoad.moduleLoaded ng angular.js:10028
ocLazyLoad.componentLoaded $route angular.js:10028
ocLazyLoad.componentLoaded $routeParams angular.js:10028
ocLazyLoad.componentLoaded ngView angular.js:10028
ocLazyLoad.moduleLoaded ngRoute angular.js:10028
ocLazyLoad.moduleLoaded oc.lazyLoad angular.js:10028
ocLazyLoad.moduleLoaded ngGrid angular.js:10028
ocLazyLoad.moduleLoaded ui.bootstrap angular.js:10028
ocLazyLoad.moduleLoaded services angular.js:10028
ocLazyLoad.moduleLoaded ngResource angular.js:10028
ocLazyLoad.moduleLoaded ngAnimate angular.js:10028
ocLazyLoad.moduleLoaded ngSanitize angular.js:10028
ocLazyLoad.moduleLoaded ngRoute angular.js:10028
ocLazyLoad.componentLoaded ApplicationMain angular.js:10028
ocLazyLoad.componentLoaded uiAssetToggleButton angular.js:10028
ocLazyLoad.componentLoaded uiSidebar angular.js:10028
ocLazyLoad.componentLoaded uiSidebarMenu angular.js:10028
ocLazyLoad.componentLoaded uiSidebarMenuItem angular.js:10028
ocLazyLoad.componentLoaded uiThumbnailCard angular.js:10028
ocLazyLoad.componentLoaded uiSecondaryNavigation angular.js:10028
ocLazyLoad.componentLoaded uiTopNav angular.js:10028
ocLazyLoad.componentLoaded uiNotification angular.js:10028
ocLazyLoad.componentLoaded uiLoader angular.js:10028
ocLazyLoad.componentLoaded uiAlert angular.js:10028
ocLazyLoad.componentLoaded uiInputText angular.js:10028
ocLazyLoad.componentLoaded uiInputRadio angular.js:10028
ocLazyLoad.componentLoaded uiInputCheckbox angular.js:10028
ocLazyLoad.componentLoaded uiInputChecklist angular.js:10028
ocLazyLoad.componentLoaded uiCombo angular.js:10028
ocLazyLoad.componentLoaded uiSelect angular.js:10028
ocLazyLoad.componentLoaded uiGrid angular.js:10028
ocLazyLoad.componentLoaded uiButton angular.js:10028
ocLazyLoad.componentLoaded link angular.js:10028
ocLazyLoad.componentLoaded ResearchProjectSearchService angular.js:10028
ocLazyLoad.componentLoaded ResearchCenterSearchService angular.js:10028
ocLazyLoad.componentLoaded ResearchProjectService angular.js:10028
ocLazyLoad.componentLoaded DesignCenterService angular.js:10028
ocLazyLoad.componentLoaded ResearchCenterService angular.js:10028
ocLazyLoad.componentLoaded RelativeResearchCenterService angular.js:10028
ocLazyLoad.componentLoaded TechnologyService angular.js:10028
ocLazyLoad.componentLoaded TechnologySearchService angular.js:10028
ocLazyLoad.componentLoaded SearchTechnologyCtrl angular.js:10028
ocLazyLoad.componentLoaded EquipmentService angular.js:10028
ocLazyLoad.componentLoaded DesignCenterSearchService angular.js:10028
ocLazyLoad.componentLoaded RelativeResearchCenterSearchService angular.js:10028
ocLazyLoad.componentLoaded EquipmentSearchService angular.js:10028
ocLazyLoad.componentLoaded PersonSearchService angular.js:10028
ocLazyLoad.componentLoaded PersonService angular.js:10028
ocLazyLoad.moduleLoaded application

and also I have the problem

@pooyaho
Copy link
Author

pooyaho commented Aug 30, 2014

The problem is Multiple directives [uiInputText, uiInputText] asking for template on: < div ................ >

@pooyaho
Copy link
Author

pooyaho commented Aug 30, 2014

I have solved the problem by removing referring to the directives in the index.html, but I cant remove ng-grid dependency from the index.html. because I need ngGrid dependency in the defining of the application. And the weird thing is all grids rendered twice. I mean in the screen I see tuple of grids

@pooyaho
Copy link
Author

pooyaho commented Aug 30, 2014

I've added loadedModules:['application'] to the config phase. and everything goes fine. and at the last I should load my directives using your module

@ocombe
Copy link
Owner

ocombe commented Sep 2, 2014

Glad to hear that, is it ok to close the issue then ?

@robertdunaway
Copy link

I'm having the same issue and I don't really understand what you did to fix this.

I've added ocLazyLoad. It seems to be working except when I select a button that used to raise a modal dialog I get this error. If I remove ocLazyLoad then the popup dialog works again.

Error: [$compile:multidir] Multiple directives [modalBackdrop, modalBackdrop] asking for template on: <div class="modal-ba

@duncangrist
Copy link

@robertdunaway - see my tweak in #77. I was having the same issue and that fixed it for me.
It's unlikely that it's a "fix" per se, as I'm sure I'm missing something huge...

ocombe added a commit that referenced this issue Nov 2, 2014
Ok so this was a really stupid mistake that was around for a long time, but that was not a problem until I changed the code to allow the reconfig...
And as often the fix is ridiculously simple! :)

Fixes #58
Fixes #71
Fixes #73
Fixes #77
@ocombe
Copy link
Owner

ocombe commented Nov 2, 2014

Fixed in 0.3.9 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants