Skip to content

Commit b348854

Browse files
committed
Remove controller instructions as they can cause lead to anti-patterns; let the AI decide instead
1 parent e7a7fbf commit b348854

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/assets/prompt_patterns.md

-20
Original file line numberDiff line numberDiff line change
@@ -93,26 +93,6 @@ const ServiceInjectionExample = ({}) => {
9393
export default ServiceInjectionExample
9494
```
9595

96-
## Pattern 4: Require Controller
97-
98-
Where a controller is required, assume that it can be passed in as a prop.
99-
100-
### Example Response
101-
102-
```javascript
103-
angular.module('myApp').component('myComponent', {
104-
require: '^MyController',
105-
template: '<div>...</div>',
106-
})
107-
```
108-
109-
```jsx
110-
const RequireControllerExample = ({myController}) => {
111-
return <>...</>
112-
}
113-
export default RequireControllerExample
114-
```
115-
11696
## Any other patterns
11797
Finally:
11898
- If you encounter any other patterns, not described above, please do your best to migrate them into the React component.

0 commit comments

Comments
 (0)