08 2018 档案
摘要:Due to the way that React Context Providers work, our current implementation re-renders all our compound component consumers with every render of the
阅读全文
摘要:If someone uses one of our compound components outside the React.createContext <ToggleContext.Provider />, they will experience a confusing error. We
阅读全文
摘要:Recentlly works with AngularJS + ocLazyLoad, our project have break down into multi small modules. For example mainApp module | -- vendor module | --
阅读全文
摘要:There is now a new, recommended, way to register a provider, directly inside the @Injectable() decorator, using the new providedIn attribute. When you
阅读全文
摘要:Using Object Oriented Programming, OOP, style allows us to apply Inversion of Control, IoC, and more patterns. An IoC container helps decoupling depen
阅读全文
摘要:Our current compound component implementation is great, but it's limited in that users cannot render the structure they need. Let's allow the user to
阅读全文
摘要:There is no applicationContext.xml file. Too much XML Namespaces helped Enter Java Configuration Create main/java/com.pluralsight/AppConfig.java: 1. S
阅读全文
摘要:Aspect Oriented Programming, AOP, allows to reuse logic across an entire app in a very neat way, decoupling it from the business logic. Kaop-ts bring
阅读全文
摘要:It’s handy to inspect an element in your browser’s DevTools when you need to experiment or tweak it’s styles, however, it can be very tricky to try an
阅读全文
摘要:Add context to our application. main/resources/applicationContext.xml: Using annotation for @Service @Repository @Controller: /repository/HibernateCus
阅读全文
摘要:Jest is a fantastic testing library, but maybe you've been putting off the switch because migrating all of your existing tests from another library se
阅读全文
摘要:Maid enables you to write your tasks in Markdown. Create a maidfile.md or a README.mdthen add Headers to list out your tasks with codeblocks including
阅读全文
摘要:In this lesson we'll use React Live to preview and edit a component directly in the browser. React Live is a great tool for rendering interactive docu
阅读全文
摘要:In this lesson we'll use mdx-deck to create a slide deck using Markdown and React. We'll look at adding multiple slides, code snippets, and importing
阅读全文
摘要:You often find duplication between the name of a prop and a variable you will assign to the prop. JSX allows you to spread an object containing your n
阅读全文
摘要:Meet some problem when trying to install node-sass on windwos. Company has proxy settings, need to remember to set proxy settings in .npmrc file:
阅读全文
摘要:Previous we have seen constructore injection: https://www.cnblogs.com/Answer1215/p/9484872.html It would be easier to using autowire to reduce the cod
阅读全文
摘要:Previous we see how to do Setter injection: https://www.cnblogs.com/Answer1215/p/9472117.html Now let's see how to cover setter injection to coustruct
阅读全文
摘要:Problem with ngModleOptions before 1.6: You repeat a lot, code doesn't look nice, from v1.6: We also have the ability to override specific options, wh
阅读全文
摘要:In CustomerServiceImpl.java, we hardcoded 'HibernateCustomerRepositoryImpl' To remove hardcoded Repository, we can use Setter Injection. First, we def
阅读全文
摘要:Insertion sort is a very intuitive algorithm as humans use this pattern naturally when sorting cards in our hands. In this lesson, using TypeScript /
阅读全文
摘要:A palindrome is a string that reads the same forward and backward, for example, radar, toot, and madam. In this lesson we discuss how to approach the
阅读全文
摘要:The anagram test is commonly used to demonstrate how an naive implementation can perform significant order of magnitudes slower than an efficient one.
阅读全文
摘要:Vue watchers allow to perform async updates as a side effect of a property change. This lesson shows you how you can watch properties on your class ba
阅读全文
摘要:Vue models, v-model, allow us to use two-way data binding, which is useful in some cases such as forms. This lesson shows how to use it by creating a
阅读全文
摘要:Components can specify requirements for its props, such as the types you’ve already seen. If a requirement isn’t met, Vue will warn you in the browser
阅读全文
摘要:We mainly need to modify our Model and REST endpoint code to enable swagger Document. model/Book.java: By doing this, we can get each model defination
阅读全文
摘要:1. We have the BookEndpoint.java: 2. Creating a test for the REST endpoint:
阅读全文
摘要:1. Create a rest folder with JAXRSConfiguration.java: 2. Create Endpoint file: BookEndpoint.java:
阅读全文
摘要:Vue provide some shortcut methods: @mousemove.stop is comparable to e.stopPropogation() @mousemove.prevent this is like e.preventDefault() @submit.pre
阅读全文
摘要:So what is a Bean, in JavaEE, any class expect Entity are Bean. One usefully thing in Bean is Dependency injection. Just like Angular, it is just a Cl
阅读全文
摘要:This lesson shows how you can extend and reuse logic in Vue components using TypeScript inheritance. It will take you through extending a component, i
阅读全文
摘要:Code for upload iamges: chooseImage: choose the images to upload previewImage: preview the image and enable slide Upload to the server:
阅读全文
摘要:When we create Entity and Respority, we also need to do validations to protect our data. In Java, validations are built-in, using decorators. For Type
阅读全文