{"comment":{"url":"https://api.github.com/repos/mosh-hamedani/angular2-course/comments/17166453","html_url":"https://github.com/mosh-hamedani/angular2-course/commit/8156901ec2f750428fc3d7800ab8b894dceca2f6#commitcomment-17166453","id":17166453,"user":{"login":"sharpmachine","id":600836,"avatar_url":"https://avatars.githubusercontent.com/u/600836?v=3","gravatar_id":"","url":"https://api.github.com/users/sharpmachine","html_url":"https://github.com/sharpmachine","followers_url":"https://api.github.com/users/sharpmachine/followers","following_url":"https://api.github.com/users/sharpmachine/following{/other_user}","gists_url":"https://api.github.com/users/sharpmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/sharpmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharpmachine/subscriptions","organizations_url":"https://api.github.com/users/sharpmachine/orgs","repos_url":"https://api.github.com/users/sharpmachine/repos","events_url":"https://api.github.com/users/sharpmachine/events{/privacy}","received_events_url":"https://api.github.com/users/sharpmachine/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"8156901ec2f750428fc3d7800ab8b894dceca2f6","created_at":"2016-04-19T19:33:13Z","updated_at":"2016-04-19T19:33:13Z","body":"@BruceHem that's the else statement. He writes them in a way I've never seen before. So what he has on lines 28-31 is the same as:\r\n\r\n```\r\nif (this.form.dirty) {\r\n  return confirm('You have unsaved changes. Are you sure you want to navigate away?');\r\n} else {\r\n  return true;\r\n}\r\n```"}}