Angular 2 Form Required 验证在提交后触发

Angular 2 Form Required validation fires after submit

我创建了一种创建社交媒体的表单 Post。问题是,在填写所有字段后,我点击提交,提交 post 后验证仍然触发。我一直在浏览 angular 2 个文档,但似乎没有任何关于这件事的讨论。我不能接受此修复程序的黑客攻击。我的表格有问题吗?还是在讨论 required 调用时我错过了文档中的某些内容。以下是我对这个问题的看法,感谢您提前提供的帮助。

plunker

addPost(post){
        if(this.newPost != null && 
            post &&
            this.newPost.title.length>=1 &&
            this.newPost.description.length>=1){
                this.posts.unshift(this.newPost);
                this.newPost = new Post();
                return false // add this line
        }
    }

编辑:在 if 块的末尾添加 return false