Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elpddev/9d90dc485cb7c8da105856862cac0c27 to your computer and use it in GitHub Desktop.
Save elpddev/9d90dc485cb7c8da105856862cac0c27 to your computer and use it in GitHub Desktop.
AngularJs auth service directive usage #angularjs #medium #article-hierarchical-di-ng
class MoviesList {
}
const MoviesListComponent = {
template: `
<h1>Movies</h1>
<ul>
<li ng-repeat="movie in ($ctrl.movies.movies | promiseAsync) track by movie.id">
{{ movie.name }} - {{ movie.year }} - {{ movie.rating }}
</li>
</ul>
`,
require: {
movies: '^',
},
controller: MoviesList
};
moviesApp.component('moviesList', MoviesListComponent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment