使用--open(或-o)参数可以自动打开浏览器并访问http://localhost:4200/。
手动设置数据值 如果有时候不能自动获取值的话(如:从header里取值),那么可以手动获取值后配置进去。
例3.3:过滤器快捷键 --filter'testMethod#2' --filter'testMethod#2-4' --filter'#2' --filter'#2-4' --filter'testMethod
当你使用ngserve和ngbuild的--configuration参数时,CLI会自动帮你导入相应的本地化数据。
下面的WelcomeComponent依赖于UserService,并通过它知道要打招呼的那位用户的名字。