<commit_before># angular-defer-cloak

Angular `defer-cloak` directive  + CSS rules as an improved alternative to the native angular `ng-cloak` directive.

## LICENSE

The MIT License (MIT)

Copyright (c) 2015 <NAME> <<EMAIL>> (https://github.com/rbecheras)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal<commit_msg>document install, init and usage in README file<commit_after># angular-defer-cloak

Angular `defer-cloak` directive  + CSS rules as an improved alternative to the native angular [`ng-cloak` directive](https://docs.angularjs.org/api/ng/directive/ngCloak).

## Installation

    bower install angular-defer-cloak

## Initialisation of your application

```js
angular.module('app',['deferCloak'])
```

```html
<html>
  <head>
    <link rel="stylesheet" href="bower_components/angular-defer-cloak/angular-defer-cloak.min.css">
    <script src="bower_components/angular-defer-cloak/angular-defer-cloak.min.js"></script>
  </head>
  <body data-ng-app="app">
    <!-- ... -->
  </body>
</html>
```

## Usage example


```html

  <div data-defer-cloak data-ng-show="isLoading">
      Loading ...
  </div>
  <div data-defer-cloak class="error-content" data-ng-show="items && items.length === 0 && !isLoading">
      <p class="error-text">No item available</p>
  </div>
  <div data-defer-cloak class="error-content" data-ng-show="errorRetrievingItems">
      <p class="error-text">Can't fetch items</p>
  </div>

  <ul>
      <li data-ng-repeat="item in items">
        {{item.label}}
      </li>
  </ul>
</body>
```

## LICENSE

The MIT License (MIT)

Copyright (c) 2015 <NAME> <<EMAIL>> (https://github.com/rbecheras)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
{'fraction_non_alphanumeric': 0.15352038115404976, 'fraction_numerical': 0.004764425622022234, 'mean_word_length': 4.013262599469496, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '545789', 'n_tokens_mistral': 645, 'n_tokens_neox': 600, 'n_words': 171}