Tuesday, June 23, 2015

angularjs Failed to instantiate module oc.lazyLoad due to:

When I open browser Internet Explorer 7 (7.0.5730)
Status tools appear error:
[$injector:modulerr] Failed to instantiate module oc.lazyLoad due to:
[$injector:nomod] Module   ‘undefined’ is not available!

But chrome (43.0.2357) is great.Console not appear error.

Friday, June 19, 2015

mac virtualbox xp ,It can't open internet


Install VM VirtualBox Guest Addtions.
Update network is Net and choose  PCnet-Fast III

Tuesday, June 2, 2015

angularjs directive not working

js 

app.directive('onlyLabelName', function($http) {
......
}

html

<input onlyLabelName><input>


when I open AngularJS websites(https://docs.angularjs.org/guide/directive),I see information on below:

The normalization process is as follows:
  1. Strip x- and data- from the front of the element/attributes.
  2. Convert the :-, or _-delimited name to camelCase.
So,I  need change onlyLabelName to only-label-name

Error: Failed to load template: template/modal/window.html

Error: Failed to load template: template/modal/window.html
Error: Failed to load template: template/modal/backdrop.html

I have resolved it by including $templateCache as app dependency (the one that posess function that calls open). 
app.run(function($rootScope, $templateCache) {
    $rootScope.$on('$viewContentLoaded', function() {

        $templateCache.removeAll();
        console.log('removeAllCache');
    });
});