Angular 1.5 Component: passing a function
问题 Is it possible to passing a function to a component and call this function inside the component passing a parameter? Example: List of posts <post-list posts="blog.posts" loading="blog.loadingPosts" get-post-url="blog.getPostUrl" is-user-authenticate="blog.user"> </post-list> getPostUrl is a function ( inside the container controller ): const getPostUrl = (postId) => { const protocol = $location.protocol(); const host = $location.host(); const port = $location.port(); return protocol + "://" +