我开发了一个Angular 5 app,里面有很多移动部件(服务,Bootstrap,Angular Material,内部+外部JS脚本等).现在我想要添加数据库连接到这个应用程序(仅限MS SQL Server).该应用程序是在Visual Studio Code中开发的.
我从MSDN 关注本教程,以了解如何将此应用程序与SQL Server数据库连接.我相信我需要Web API和.NET Core支持连接,我无法找到一种方法来做到这一点,无需从头开始在任何VS代码(例如这里)或Visual Studio(如引用中)因为几乎所有关于这个主题的文章/教程都是从头开始的.我看到它的方式,在Visual Studio中创建一个新的Angular + Core项目并逐个文件地迁移app逻辑对我来说不是一个可行的解决方案.
我的问题是:
我如何只显示第一行文字?如果我有这样的事情:
<View>
<Text>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
</Text>
</View>
Run Code Online (Sandbox Code Playgroud)
我只想显示“与流行的看法相反,洛雷姆·伊普森”。