我在使用ng build
构建应用时偶然发现了一个问题。如果我将index
中的angular-cli.json
设置为index.html
,该应用就可以正常运行,但在我的情况下,我需要index
为base.jinja2 - Python Templating Engine
,这会导致构建时出错。
出现这些错误的原因只是因为base.jinja2
有自己的数据绑定undefined errors during build
而我只想让ng build
避免错误检查base.jinja2
,因为没有必要这样做至少在我的情况下。
实际上,我想要的是script
期间link
index
附加ng build
和Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.example.abc");//pass the packagename of app you want to open
startActivity( LaunchIntent );
元素,如果还有另外一种方式,我会非常感激。
有什么建议吗?